Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 5aefb8a6 | 2009-06-25 15:22:36 | Fix type on freebsd sendfile. Patch from navin seshadri. Fixes bug 2811991 svn:r1330 | ||
| 0b22ca19 | 2009-05-22 19:11:48 | Use ev_ssize_t in place of ssize_t *everywhere*. svn:r1309 | ||
| 8997f234 | 2009-05-21 20:59:00 | Use the native "struct iovec" as our "struct evbuffer_iovec" when available, so we do not need to copy more pointers than necessary. svn:r1299 | ||
| 23243b8a | 2009-05-19 21:39:35 | Replace reserve/commit with new iovec-based interface. Add a new evbuffer_peek. svn:r1296 | ||
| dc4c7b95 | 2009-05-15 22:44:18 | Change the interface of evbuffer_add_reference: give the cleanup function more info. svn:r1294 | ||
| bba69e03 | 2009-05-15 20:23:59 | New semantics for evbuffer_cb_set_flags(). Previously, set_flags() would replace all previous user-visible flags. Now it just sets the flags, and there is a clear_flags() function to clear other flags. svn:r1293 | ||
| e865eb93 | 2009-05-01 00:54:14 | More msvc build tweaks. svn:r1262 | ||
| 24607a39 | 2009-04-29 20:48:43 | Note a place we might do better about lock releasing. svn:r1252 | ||
| 11cab334 | 2009-04-28 19:08:07 | Fix compile: #elif FOO is not the same as #elif defined(FOO). svn:r1245 | ||
| 5c4c13d8 | 2009-04-24 03:24:22 | make sendfile work on freebsd svn:r1239 | ||
| ec6bfd03 | 2009-04-23 21:41:53 | Fix for evbuffer_read() when all data fits in penultimate chain. Previously we were reading into the next-to-last chain, but incrementing the fullness of the last. Bug found by Victor Goya. svn:r1237 | ||
| a8f6d961 | 2009-04-17 06:56:09 | Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h svn:r1183 | ||
| 93d4f884 | 2009-04-14 20:11:10 | Make buffer iocp stuff compile happily svn:r1174 | ||
| 0e32ba54 | 2009-04-13 03:06:59 | Do not remove an empty chain that we have pinned for reading when we drain the whole buffer. svn:r1166 | ||
| 9f1a94ec | 2009-04-13 03:06:47 | add pin/unpin functions, and a deref-and-free pair. svn:r1165 | ||
| dcda7915 | 2009-04-13 03:06:27 | Add a reference count to evbuffers. svn:r1164 | ||
| b01891fe | 2009-04-13 03:06:05 | Make evbuffer_commit_space trigger callbacks. svn:r1163 | ||
| 829b52b6 | 2009-04-13 03:05:46 | Refactor the code that sets up iovecs for reading into its own function. iocp needs this. svn:r1162 | ||
| b29b875d | 2009-04-10 20:43:08 | Facility to make evbuffers get their callbacks deferred. svn:r1154 | ||
| 747331d1 | 2009-04-08 03:04:39 | Add freeze support to evbuffers. From the documentation: Prevent calls that modify an evbuffer from succeeding. A buffer may frozen at the front, at the back, or at both the front and the back. If the front of a buffer is frozen, operations that drain data from the front of the buffer, or that prepend data to the buffer, will fail until it is unfrozen. If the back a buffer is frozen, operations that append data from the buffer will fail until it is unfrozen. We'll use this to ensure correctness on an evbuffer when we're waiting for an overlapped IO call to finish. svn:r1143 | ||
| d9086fc0 | 2009-04-08 03:03:59 | Add a new facility to "pin" the memory in an evbuffer chain. For overlapped IO (and possibly other stuff) we need to be able to label an evbuffer_chain as "pinned", meaning that every byte in it must remain at the same address as it is now until it unpinned. This differs from being "immutable": it is okay to add data to the end of a pinned chain, so long as existing data is not moved. svn:r1142 | ||
| 60e0d59b | 2009-04-05 02:44:17 | Add locking to evbuffers. svn:r1134 | ||
| f1b1bad4 | 2009-04-03 14:27:03 | Make the new evbuffer callbacks use a new struct-based interface. The old interface would fail pretty hard when we had to batch up multiple adds and drains in a single call. svn:r1131 | ||
| f90500a5 | 2009-04-03 01:21:36 | Add a new improved search function. The old evbuffer_find didn't allow iterative searching, and forced us to repack the buffer completely every time we searched in it. The new evbuffer_search addresses both of these. As a side-effect, the evbuffer_find implementation is now a little more efficient. svn:r1130 | ||
| 01456265 | 2009-02-10 19:39:22 | Explode less badly in the case where we're told to prepend/append/remove a buffer to itself. Note some API/implementation deficiencies. svn:r1110 | ||
| edfdb698 | 2009-02-10 19:38:34 | Add an assertion to evbuffer_chain_align so we can't reuse it in the future. svn:r1105 | ||
| cc049bfc | 2009-02-03 05:22:57 | Enable (and debug) WSARecv for evbuffer iovec-like reads. The two things we were missing: the flags parameter is not optional, and an error can actually indicate a close. svn:r1100 | ||
| e84c7656 | 2009-02-01 05:26:47 | Allocate callback entries with contents 0d out. svn:r1093 | ||
| 8d3a10f8 | 2009-02-01 01:43:58 | Support temporarily suspending an evbuffer callback. This is different from disabling the callback, since we want to process changes, but not just yet. svn:r1091 | ||
| a0cae310 | 2009-01-29 03:22:47 | make it so that evbuffer_add_file where we read the complete contents of the file can fail without side effects svn:r1069 | ||
| 66b2a7ff | 2009-01-29 03:20:40 | test evbuffer_add_reference svn:r1068 | ||
| b85b710c | 2009-01-27 22:34:36 | Update copyright statements to reflect the facts that: a) this is 2009 b) niels and nick have been comaintainers for a while c) saying "all rights reserved" when you then go on to explicitly disclaim some rights is sheer cargo-cultism. svn:r1065 | ||
| 8889a770 | 2009-01-27 22:30:46 | Replace all use of config.h with event-config.h. svn:r1064 | ||
| 9993137c | 2009-01-27 21:10:31 | Remove all trailing whitespace in all the source files. svn:r1063 | ||
| 88f2b7a0 | 2009-01-27 13:37:09 | Fix some warnings on linux gcc with --enable-gcc-warnings svn:r1060 | ||
| 1757cf71 | 2009-01-27 06:21:12 | use %zu for off_t svn:r1059 | ||
| 8b5bd774 | 2009-01-27 06:18:45 | make it compile on linux svn:r1058 | ||
| fdf69493 | 2009-01-27 06:05:38 | sendfile/mmap and memory reference implementation for evbuffers svn:r1057 | ||
| b93e5054 | 2009-01-27 05:33:39 | second argument to evbuffer_pullup should be ssize_t svn:r1056 | ||
| 81dd04a7 | 2009-01-23 18:04:34 | Add a "flags" field to evbuffer callbacks. For now, there is just one: enabled. This lets us avoid lots of mallocs/frees/tailq-manipulations just to turn a callback on and off. The revised bufferevent code wants this. svn:r1047 | ||
| de7f7a84 | 2009-01-23 18:03:45 | Remove in_callbacks check: allow full recursion in evbuffer callbacks. If you get yourself in an infinite loop, that's not our fault. Note this in the docs. Also reindent some docs now that my tabs match Niels's. svn:r1046 | ||
| ec2f4cbc | 2009-01-23 01:35:57 | Move obsolete evbuffer function into include/event2/buffer_compat.h svn:r1043 | ||
| c735f2b4 | 2009-01-23 01:11:13 | Code to allow multiple callbacks per evbuffer. svn:r1042 | ||
| f6eb1f81 | 2009-01-19 21:53:03 | Change evbuffer_read implementation to split data across chunks, and use readv when available. This should make us use less space. svn:r1024 | ||
| 84031819 | 2009-01-14 22:17:31 | Make some evbuffer functions const svn:r1010 | ||
| 3552ac1e | 2009-01-14 19:39:17 | Do not allow chain length to expand indefinitely. svn:r1007 | ||
| 6d3ed065 | 2009-01-14 14:58:48 | Simplify evbuffer_write logic: combine nearly all of WSASend and writev cases. svn:r1004 | ||
| bab8f2e1 | 2009-01-13 22:02:32 | Fix compilation on win32 WSASend evbuffer_write() code. Still not enabled until I make sure that the unit tests test this. They _do_ pass. svn:r1003 | ||
| 169321c9 | 2009-01-13 20:26:37 | Rename four internal headers to follow the -internal.h convention. svn:r1000 | ||
| 822ca048 | 2009-01-13 19:34:50 | Untested (and compiled-out) evbuffer_write backend to use WSASend on win32 where we use writev on unix. svn:r998 | ||
| 99db0e7f | 2009-01-12 20:42:19 | Add a new evbuffer_write_atmost() functino to write no more than a given number of bytes to an fd. svn:r993 | ||
| e711ce45 | 2008-06-21 06:10:10 | reintroduce a memmove when there is enough misalignment to hold the new data; otherwise the size of the buffer may grow without bounds svn:r857 | ||
| 9586a1cb | 2008-06-01 16:21:24 | fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb svn:r845 | ||
| c6da86ff | 2008-05-12 16:44:24 | r19709@catbus: nickm | 2008-05-12 12:42:48 -0400 Possible fix for [1960723] snprintf and vsnprintf return values are wrong on win32 svn:r813 | ||
| 6bf1ca78 | 2008-05-12 00:40:04 | r19675@catbus: nickm | 2008-05-11 20:39:39 -0400 Stop pretending that u_char and u_short are standard types that win32 is dumb not to have. In fact, u_char can really just be spelled out, and u_short was usually just a bad way of saying ev_uint16_t. svn:r808 | ||
| 8acb80b4 | 2008-05-08 22:51:39 | r15551@tombo: nickm | 2008-05-08 14:49:20 -0400 Use _get_ convention for new accessor functions. (These are all new ones as of 2.0, I believe). svn:r799 | ||
| f04497e4 | 2008-05-03 03:05:28 | introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient svn:r757 | ||
| becc89b7 | 2008-05-03 02:37:18 | introduce evbuffer_contiguous_space() and use it in the zlib filter test svn:r756 | ||
| 49868b61 | 2008-04-25 01:18:08 | r15316@tombo: nickm | 2008-04-24 20:58:36 -0400 Rename internal memory management functions from event_malloc() etc to mm_malloc() etc. svn:r725 | ||
| 0ac73078 | 2008-04-16 20:01:51 | r15193@tombo: nickm | 2008-04-16 16:00:35 -0400 Split event.h into several new headers in include/event2. event.h is now just a wrapper that includes all the subheaders. svn:r711 | ||
| 193c06a7 | 2008-03-31 02:04:34 | fix a bug in which evbuffer_add_vfprintf would loop forever; avoid fragmentation in evbuffer_expand by increasing the size of the last buffer in the chain; as a result with have to keep track of the previous_to_last chain; provide a evbuffer_validate() function in the regression test to make sure that all evbuffer are internally consistent. svn:r699 | ||
| 00382110 | 2008-02-29 05:23:49 | address nick's comments and make evbuffer_pullup more efficient svn:r680 | ||
| 0322ce0a | 2008-02-28 18:36:03 | r18486@catbus: nickm | 2008-02-28 13:35:53 -0500 Make offsetof into evutil_offsetof. Be a little more willing to call evbuffer_chain_align() from evbuffer_expand(). Clarify some docs, and add some XXX comments to note questionable areas. svn:r677 | ||
| d71da6f7 | 2008-02-28 17:47:30 | r18484@catbus: nickm | 2008-02-28 12:47:20 -0500 Use event_warn() function, not fprintf-to-stderr. svn:r676 | ||
| 0e7cbe65 | 2008-02-28 17:38:52 | r18482@catbus: nickm | 2008-02-28 12:38:40 -0500 Fix GCC 4.2 warnings; fix includes in subdirs. svn:r675 | ||
| 5c70ea4c | 2008-02-28 02:47:43 | improved code for evbuffer; avoids memcpy svn:r674 | ||
| 67bf29ad | 2008-02-23 06:02:04 | simplify evbuffer by removing orig_buffer svn:r654 | ||
| 1120f04f | 2007-11-25 21:53:06 | r16731@catbus: nickm | 2007-11-25 16:52:53 -0500 Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32. svn:r552 | ||
| 6773a597 | 2007-11-25 21:32:26 | r14953@tombo: nickm | 2007-11-25 15:56:40 -0500 Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests. svn:r550 | ||
| 7eb250e9 | 2007-11-25 17:14:19 | r14939@tombo: nickm | 2007-11-25 11:59:26 -0500 New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions. svn:r541 | ||
| 4e1ec3e0 | 2007-11-07 21:01:26 | Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing. svn:r499 | ||
| e72661d2 | 2007-11-07 07:33:31 | r16509@catbus: nickm | 2007-11-07 02:08:32 -0500 Stop using C++ style comments. svn:r497 | ||
| db43c1e1 | 2007-09-20 19:36:03 | On win32, sockets apparently can't be used with ReadFile and WriteFile: You need send() and recv() instead. Also, you need to use ioctlsocket() with sockets, not ioctl. [Fixes evbuffer regression tests.] svn:r448 | ||
| 41c69fc3 | 2007-08-19 17:26:02 | fix typo in comments svn:r399 | ||
| f0ff792a | 2007-06-30 18:58:34 | fixes from Joerg Sonnenberger: http.c is a violation of the ctype(3) interface and an unused function. test/regress_http.c are incorrect format strings. test/regress.c uses raise(3) from signal.h. evdns.c: evdns_error_strings is unused. The GET* macros can eat the semicolon from the expression. pos is passed in as off_t, so just pass that down. When assigning negativ values to unsigned variables, an explicit cast is considered good style. svn:r367 | ||
| 0c280824 | 2007-05-23 05:20:59 | support removing of http callbacks and removing of registered RPCs svn:r355 | ||
| 4408a5f8 | 2007-04-19 03:13:12 | fix evbuffer_find off by one; found by Ken Cox; regression test by him and fix by me svn:r353 | ||
| b5d2f9a2 | 2007-03-01 06:25:18 | rolling back r339: evconfig.h does not work svn:r341 | ||
| 127c260b | 2007-02-28 04:02:29 | make evconfig.h available as installed header file; not really ideal but good enough for me; from Nick Mathewson svn:r339 | ||
| 58f42c79 | 2007-02-14 16:59:47 | fix handling of chunked requests svn:r328 | ||
| 22e53c7a | 2007-01-27 04:10:08 | make it work on freebsd; from phil oleson svn:r314 | ||
| de4e25f1 | 2007-01-06 02:25:50 | evbuffer_find fix from Dug Song svn:r308 | ||
| 79d2ca8c | 2006-11-10 02:16:16 | fix a potential problem in multiple handling of va_list; use va_copy instead; from Alejo. svn:r251 | ||
| 9f7d28bb | 2006-09-27 03:07:38 | make it compile with mingw; from Nick svn:r235 | ||
| 896bf3a2 | 2006-02-13 02:22:48 | many changes for fixing a small bug: post requests would not send the post data. I took the opportunity to reorganize a bit. svn:r201 | ||
| 7b78c828 | 2006-02-13 01:51:58 | limit the amount of data bufferevents are going to consume to something reasonable; in some circumstances it could happen that libevent happily allocated 100MB in read buffers without telling the user; found by christopher maxwell - parts of these changes are from his patch. svn:r200 | ||
| 36bedaef | 2006-01-22 05:06:14 | another fix from art svn:r194 | ||
| 8d1317d7 | 2005-12-06 03:26:28 | add evbuffer_add_vprintf interface from artur grabowski; add some testing svn:r188 | ||
| 11a40d47 | 2005-09-20 15:59:00 | event.3 svn:r184 | ||
| e1759c7b | 2005-06-19 20:28:20 | fix issue with signedness warnings; from Alexander von Gernler svn:r169 | ||
| 81bd0a06 | 2005-06-10 07:42:14 | bufferevents would not correctly detect EOF on read; reported by Jonathan Brannan svn:r167 | ||
| 425fc0d5 | 2005-04-23 02:53:39 | provide a function to read lines from buffers; comes in handy for many AscII protocols. svn:r154 | ||
| 5e2ba12a | 2005-04-14 23:28:06 | fixes from alexander von gernler svn:r148 | ||
| 32bed8f9 | 2005-04-01 04:20:39 | build fixes from nick mathewson svn:r139 | ||
| fbdaf3ab | 2005-03-29 07:03:10 | debugging callbacks from Nick Mathewson <nickm@freehaven.net> svn:r136 | ||
| 6db3da27 | 2004-07-19 06:18:10 | should work a little bit better with solaris compiler svn:r111 | ||
| 44d88ea6 | 2004-07-13 08:02:45 | change evbuffer_read so that it reads directly into the memory allocated to the evbuffer; this avoids one unnecessary data copy. svn:r110 | ||
| de5fc619 | 2004-06-11 04:42:56 | make it compile on systems without vasprintf svn:r107 | ||
| 025d1bc2 | 2004-05-24 00:19:52 | fix some of the windows compile issues; make buffer.c faster; support signals via pipes. svn:r105 | ||
| 849d5249 | 2004-04-13 06:22:48 | license svn:r104 |