Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'v0.16.x' | Max Kellermann | 2011-09-20 | 1 | -2/+3 |
|\ | |||||
| * | fd_util: add function close_socket() | Max Kellermann | 2011-09-20 | 1 | -1/+1 |
| | | | | | | | | Wrap close(), use closesocket() on WIN32/WinSock. | ||||
| * | glib_socket.h: wrap g_io_channel_*_new() calls portably | Max Kellermann | 2011-09-20 | 1 | -1/+2 |
| | | | | | | | | | | The server_socket library (used by the httpd output plugin) didn't check for WIN32, that's fixed now. | ||||
* | | Set socket TCP keepalive option on incoming connections | Dan McGee | 2011-09-19 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a connected host disappears without our knowledge, as can happen over wireless or a hibernating machine, we continue to hold the port open waiting for messages. Because we never try to send anything down this now-broken pipe, the connection will sit idle taking up a slot in our allowed incoming connections list. If enough of these happen, an unintended Denial of Service takes place, where all connection slots are filled with now-broken, never ending connections. Setting the TCP keepalive option at least allows these to time out after the default two hours, which is sufficient in the non-malicious case. Signed-off-by: Dan McGee <dan@archlinux.org> | ||||
* | | copyright year 2011 | Max Kellermann | 2011-01-29 | 1 | -1/+1 |
| | | |||||
* | | Build fix for Linux. Define _GNU_SOURCE in src/server_socket.c. | Ben Kibbey | 2010-12-27 | 1 | -0/+5 |
|/ | |||||
* | server_socket: remove AI_ADDRCONFIG | Mantas Mikulenas | 2010-11-04 | 1 | -3/+0 |
| | | | | | | | When you pass the flag AI_ADDRCONFIG to getaddrinfo(), it does not consider address families on the loopback device. When run on a machine without an external network card, just with "lo", it was unable to look up any address. | ||||
* | listen: move generic code to server_socket.c | Max Kellermann | 2010-10-05 | 1 | -0/+447 |