Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.907 kb
ad4f1ed @nniclausse refactoring of recorder: add plugin architecture for other protocols …
nniclausse authored
1
2
3 -define(tcp_buffer, 65536).
4 -define(lifetime, 120000).
5
6 -record(state_rec, {log_file, % logfile name
7 logfd, % logfile IODevice
8 prev_port, % previous port
9 prev_scheme, % previous scheme
10 prev_host, % previous hostname
11 timestamp=0, % last request date
12 plugin,
13 thinktime_low = 1000 % dot not record thinktime less than this
14 % value (msec)
15 }).
16
17
18 -record(proxy, {
19 clientsock,
20 http_version,
21 close, % must close client socket (connection:close header was send by server)
22 parse_status = new, %% http status = body|new
23 body_size = 0,
24 content_length = 0,
25 buffer = [],
26 plugin,
27 serversock
28 }).
29
Something went wrong with that request. Please try again.