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-12 15:44:02 +01:00
2013-12-02 23:31:33 +01:00
2011-03-13 22:00:24 +01:00
2013-11-14 16:37:50 +01:00
2007-05-13 22:46:04 +02:00
2013-10-01 09:49:21 +02:00
2013-12-14 16:02:20 +01:00
2012-11-21 01:56:47 +01:00
2013-12-09 16:06:15 +01:00
2012-11-24 14:54:13 +01:00
2013-12-16 02:23:52 +01:00
2010-08-10 14:01:09 +02:00
2013-08-13 17:52:20 +02:00
2006-12-04 02:20:02 +01:00
2009-10-26 21:10:04 +01:00
2012-02-21 22:27:27 +01:00
2009-10-26 21:10:04 +01:00
2009-10-26 21:10:04 +01:00
2009-10-03 18:41:18 +02:00
2013-12-09 16:06:21 +01:00
2012-12-28 09:51:00 +01:00
2013-12-06 11:40:53 +01:00
2013-12-09 16:06:08 +01:00
2013-12-12 15:44:02 +01:00
2013-11-19 08:04:59 +01: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-09-11 23:28:51 +02:00
2013-06-10 20:33:23 +02:00
2013-12-09 16:06:21 +01:00
2007-05-13 20:19:55 +02:00
2013-12-02 23:31:33 +01:00
2013-12-14 16:02:19 +01:00
2013-12-09 16:06:21 +01:00
2010-08-27 18:00:40 +02:00
2013-05-07 22:11:54 +02:00
2013-09-04 17:54:01 +02:00
2013-12-12 15:58:30 +01:00
2013-12-09 16:06:22 +01:00
2006-06-29 18:54:54 +02:00