Willy Tarreau
ad38acedaa
MEDIUM: connection: centralize handling of nolinger in fd management
...
Right now we see many places doing their own setsockopt(SO_LINGER).
Better only do it just before the close() in fd_delete(). For this
we add a new flag on the file descriptor, indicating if it's safe or
not to linger. If not (eg: after a connect()), then the setsockopt()
call is automatically performed before a close().
The flag automatically turns to safe when receiving a read0.
2013-12-16 02:23:52 +01:00
..
2013-12-02 23:31:33 +01:00
2013-04-03 02:13:02 +02:00
2013-12-02 23:31:33 +01:00
2012-09-02 21:54:55 +02:00
2013-06-08 13:14:17 +02:00
2013-11-19 09:35:54 +01:00
2012-11-21 02:15:16 +01:00
2013-12-16 02:23:52 +01:00
2007-03-24 17:24:39 +01:00
2013-12-12 15:58:30 +01:00
2013-12-16 02:23:52 +01:00
2010-08-10 14:01:09 +02:00
2012-10-05 00:32:33 +02:00
2011-10-24 18:15:04 +02:00
2009-10-09 07:17:58 +02:00
2012-02-21 22:27:27 +01:00
2009-10-01 11:19:37 +02:00
2009-10-01 11:19:37 +02:00
2009-10-01 21:11:15 +02:00
2013-06-14 19:52:17 +02:00
2013-04-03 02:12:56 +02:00
2013-12-12 15:44:05 +01:00
2013-12-09 15:40:22 +01:00
2013-12-12 15:50:01 +01:00
2013-08-01 21:17:13 +02:00
2011-06-18 20:27:19 +02:00
2009-01-25 13:49:53 +01:00
2009-06-10 12:23:32 +02:00
2013-12-09 16:06:22 +01:00
2013-12-02 23:31:32 +01:00
2012-05-11 16:48:10 +02:00
2012-09-15 22:29:32 +02:00
2012-09-15 22:29:32 +02:00
2012-01-20 16:18:53 +01:00
2012-10-04 22:26:09 +02:00
2013-12-12 23:16:54 +01:00
2013-11-25 07:31:16 +01:00
2013-12-09 15:40:21 +01:00
2012-12-28 14:48:13 +01:00
2012-09-03 20:49:14 +02:00
2012-10-12 20:48:51 +02:00
2013-09-04 17:54:01 +02:00
2013-12-16 02:23:52 +01:00
2011-07-25 16:33:49 +02:00
2006-06-29 18:54:54 +02:00