… | |
… | |
65 | socket_ev (this, &client::socket_cb) |
65 | socket_ev (this, &client::socket_cb) |
66 | { |
66 | { |
67 | refcnt_inc (); // the socket is an external reference |
67 | refcnt_inc (); // the socket is an external reference |
68 | |
68 | |
69 | mss = 1500 - 52; // 1500 typical ethernet frame, 66 typical tcp header overhead |
69 | mss = 1500 - 52; // 1500 typical ethernet frame, 66 typical tcp header overhead |
|
|
70 | |
|
|
71 | socket_timeout = 16.; |
70 | |
72 | |
71 | { |
73 | { |
72 | struct linger linger_opt; |
74 | struct linger linger_opt; |
73 | |
75 | |
74 | linger_opt.l_onoff = 0; |
76 | linger_opt.l_onoff = 0; |