Commit 84dce7f2 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Add missing bit of r4183

This bit got missing when we merged the new epoll acceptor for 2.0.

Disable SO_LINGER when we time out a connection due to sess_timeout,
so that we do not RST connections that have still not transmitted
their data.

git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4341 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3444c491
......@@ -192,6 +192,7 @@ vca_main(void *arg)
if (sp->t_open > deadline)
break;
VTAILQ_REMOVE(&sesshead, sp, list);
TCP_linger(sp->fd, 0);
vca_close_session(sp, "timeout");
SES_Delete(sp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment