Changeset 620
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r589 r620 1 2008-07-04 Mark Doliner <mark@meebo.com> 2 * Fix a potential memory leak when attempting to read from a socket that 3 has been closed. 4 * Improve the documentation for <max_fds> in the configuration files. 5 1 6 2008-05-20 Tomasz Sterna <tomek@xiaoka.com> 2 7 * Ported apr_base64.c from Apache httpd 2.2.8 -
trunk/mio/mio.h
r576 r620 80 80 * @brief mio - manage i/o 81 81 * 82 * This used to be something large and all inclusive for 1.2/1.4, 83 * but for 1.5 and beyond it is the most simple fd wrapper possible. 84 * It is also customized per-app and may be limited/extended depending on needs. 82 * This is the most simple fd wrapper possible. It is also customized 83 * per-app and may be limited/extended depending on needs. 84 * 85 * It's basically our own implementation of libevent or libev. 85 86 * 86 87 * Usage is pretty simple: -
trunk/sx/io.c
r531 r620 205 205 206 206 /* EOF if we got a 0-byte read from the socket */ 207 if(read == 0) 207 if(read == 0) { 208 208 /* they went away */ 209 _sx_buffer_free(in); 209 210 _sx_state(s, state_CLOSING); 210 211 211 else {212 } else { 212 213 _sx_debug(ZONE, "passed %d read bytes", in->len); 213 214