Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -11/+12 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-09-04 | system/SocketError: un-inline constructor | Max Kellermann | 1 | -0/+2 | |
Reduces header dependencies. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -41/+35 | |
Replaces GLib's GError. | |||||
2013-09-04 | system/resolver: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-08-07 | Makefile.am: move sources to libsystem.a | Max Kellermann | 1 | -4/+4 | |
2013-02-04 | event/ServerSocket: close only sockets that have been opened | Max Kellermann | 1 | -1/+3 | |
Fixes assertion failure. | |||||
2013-02-04 | ServerSocket: Initialize length variable | Uli Schlachter | 1 | -1/+1 | |
2013-01-30 | ServerSocket: replace callback with virtual method | Max Kellermann | 1 | -12/+7 | |
2013-01-30 | ServerSocket: expose the class | Max Kellermann | 1 | -103/+59 | |
Eliminate the C wrappers. | |||||
2013-01-30 | ServerSocket: move to libevent.a | Max Kellermann | 1 | -0/+0 | |
2013-01-30 | event/SocketMonitor: OnSocketReady() returns bool | Max Kellermann | 1 | -2/+3 | |
2013-01-15 | ServerSocket: use the SocketMonitor class | Max Kellermann | 1 | -50/+28 | |
2013-01-15 | ServerSocket: move more code to methods | Max Kellermann | 1 | -19/+30 | |
2013-01-15 | ServerSocket, SocketUtil: use the SocketError library | Max Kellermann | 1 | -7/+9 | |
Use WinSock errors on Windows. | |||||
2013-01-15 | socket_util: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-01-15 | server_socket: convert to C++ | Max Kellermann | 1 | -135/+145 | |
2012-07-10 | require GLib 2.16 | Max Kellermann | 1 | -1/+0 | |
GLib 2.16 was released more than 4 years ago. Let's remove some cruft from the glib_compat.h header, and avoid new cruft to it. | |||||
2012-02-13 | server_socket: add method _add_fd() | Max Kellermann | 1 | -0/+30 | |
2012-02-13 | server_socket: move code to set_fd() | Max Kellermann | 1 | -8/+21 | |
2011-10-13 | configure.ac: define WINVER | Max Kellermann | 1 | -1/+0 | |
Ensure that WINVER is defined early enough, so other system headers won't fall back to their default value. Specifically, this solves a build failure (-Werror) with mingw-w64 ("WINVER redefined"). | |||||
2011-10-09 | don't define WINVER in *.c files | Max Kellermann | 1 | -1/+0 | |
In a C file, that is too late, because _mingw.h defaults to 0x0502, and ours would be illegal redefintion. | |||||
2011-09-20 | server_socket: use resolve_host_port() instead of getaddrinfo() | Max Kellermann | 1 | -17/+4 | |
Allow port specification in "bind_to_address" settings. | |||||
2011-09-20 | socket_util: move sockaddr_to_string() to resolver.c | Max Kellermann | 1 | -0/+1 | |
2011-09-20 | fd_util: add function close_socket() | Max Kellermann | 1 | -1/+1 | |
Wrap close(), use closesocket() on WIN32/WinSock. | |||||
2011-09-20 | glib_socket.h: wrap g_io_channel_*_new() calls portably | Max Kellermann | 1 | -1/+2 | |
The server_socket library (used by the httpd output plugin) didn't check for WIN32, that's fixed now. | |||||
2011-09-19 | Set socket TCP keepalive option on incoming connections | Dan McGee | 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> | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-12-27 | Build fix for Linux. Define _GNU_SOURCE in src/server_socket.c. | Ben Kibbey | 1 | -0/+5 | |
2010-11-04 | server_socket: remove AI_ADDRCONFIG | Mantas Mikulenas | 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. | |||||
2010-10-05 | listen: move generic code to server_socket.c | Max Kellermann | 1 | -0/+447 | |