hi,
I have this code:
event connection_established(c: connection) {
local orig_file = generate_extraction_filename(extrac_prefix, c, “orig.dat”);
local orig_f = open(orig_file);
set_contents_file(c$id, CONTENTS_ORIG, orig_f);
local resp_file = generate_extraction_filename(extrac_prefix, c, “resp.dat”);
local resp_f = open(resp_file);
set_contents_file(c$id, CONTENTS_RESP, resp_f);
}
and I would like set a maximum size, I think that I have two options,
- set a maximum size file
- control the data so that it does not exceed the size
How can I do this?
thanks