Log

Author Commit Date CI Message
Nick Mathewson 7e45739e 2012-12-04T12:01:25 Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled Reported by Xiuqiang Jiang
Nick Mathewson f7d92c63 2012-11-19T10:56:16 Increment version to 2.0.21-stable-dev
Nick Mathewson 64177777 2012-11-18T01:39:10 Increment libtool version for 2.0.21 too
Nick Mathewson 0ee10fdf 2012-11-18T01:38:07 Increment version to 2.0.21-stable
Nick Mathewson 1c5517c9 2012-11-18T01:36:33 Changelog for 2.0.21-stable
Nick Mathewson f38e0788 2012-11-18T01:36:03 Make ssl version check in unit tests work
Nick Mathewson e3cccf38 2012-11-16T11:55:27 Avoid crash when event_pending() called with no event_base set on event Instead, give a warning and return 0. Reported by Antony Dovgal on github as https://github.com/libevent/libevent/issues/19
Patrick Pelletier ac356502 2012-11-07T19:48:22 remove stray 'x' so print_err will compile when uncommented
Nick Mathewson f3009e48 2012-11-16T10:28:19 Make rpcgen_wrapper.sh work on systems without a "python2" binary
Nick Mathewson ac009f92 2012-11-15T11:43:20 Warn when openssl version in unit test mismatches compiled version.
Nick Mathewson c2f30863 2012-11-15T11:42:14 Fix renegotiation test to work around openssl 1.0.1 bug There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't renegotiate with themselves. When testing renegotiation with OpenSSL >=1.0.1 and <1.0.1d, disable those protocols.
Nick Mathewson 62bd2c44 2012-11-02T11:44:29 Fix compilation on mingw64 with -DUSE_DEBUG
Nick Mathewson 94866c27 2012-11-01T17:38:34 Compile without warnings on mingw64 This is mostly a matter of catching cases where we were still assuming that evutil_socket_t could be used as an int.
Nick Mathewson 2479d964 2012-10-26T19:36:44 Merge remote-tracking branch 'rosslagerwall/python2-2.0' into patches-2.0
Juan Pablo Fernandez cb853ea3 2012-10-26T19:33:31 Close IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set
Nick Mathewson 1ff2c249 2012-10-24T22:48:59 Merge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0
Ross Lagerwall 0eb01099 2012-10-23T13:30:58 Use python2 rather than python python may refer to either python2 or python3 so rather by explicit by using python2. See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more details.
Joachim Bauch 1acf2ebc 2012-09-06T10:01:10 No need to reserve space if reading is suspended. Conflicts: bufferevent_openssl.c
Joachim Bauch f719b8a9 2012-09-03T21:42:15 Stop looping in "consider_reading" if reading is suspended.
George Danchev f2bff75e 2012-09-12T20:12:03 FIx another memleak on OOM in evdns
George Danchev 73e85dd0 2012-09-12T20:11:12 Avoid a memory-leak on OOM in evdns.
Nick Mathewson 576b29f2 2012-09-07T15:53:02 Don't discard SSL read event when timeout and read come close together
Nick Mathewson 484e93c1 2012-08-24T11:40:46 Increment version to 2.0.20-stable-dev
Nick Mathewson 41d77a7c 2012-08-23T14:39:30 Add a date to the changelog
Nick Mathewson 46604b34 2012-08-23T14:38:54 Increment version to 2.0.20-stable
Nick Mathewson fc43cbdc 2012-08-23T10:36:39 Initial changelog and credits for 2.0.20
Nick Mathewson 606ac43b 2012-08-22T12:30:42 Correctly invoke callbacks when a SSL bufferevent reads some and then blocks. Based on a patch by Andrew Hochhaus, who correctly diagnosed this bug.
Nick Mathewson ca80ea61 2012-08-02T11:56:17 Add explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED)
Nick Mathewson c0720c1b 2012-08-02T11:38:32 Fix an unused variable warning on *BSD.
Greg Hazel dc320776 2012-07-30T16:52:55 Avoid segfault on weird timeout during name lookup. If an evdns_getaddrinfo timeout happens while pending_cb is set, and a callback is about to run, but we get a call to evdns_getaddrinfo_gotresolve before it finishes. Github issue #60. Thanks to Greg Hazel for patch and patience.
Nick Mathewson a0912e32 2012-07-26T10:39:05 Check more setsockopt return values when binding sockets. Found by coverity
Nick Mathewson a1a0e675 2012-07-26T10:38:29 memset sockaddr_in before using it. Found by coverity.
Nick Mathewson a2006c00 2012-07-26T10:37:47 Move assignment outside tt_assert in ssl unit tests. Appeases coverity.
Nick Mathewson b9e73297 2012-07-26T10:37:13 Add checks to various return values in unit tests. Found by coverity
Nick Mathewson 6a4ec5c2 2012-07-26T10:34:06 Avoid possible needless call to writev. Found by coverity.
Nick Mathewson 6355b2a4 2012-07-26T10:16:47 Remove unused variable; spotted by coverity
Nick Mathewson 3cde5bf5 2012-07-26T10:04:43 Avoid more crashes/bad calls in unit tests; found by coverity
Nick Mathewson f021c3d7 2012-07-26T09:59:47 Add some missing null checks to unit tests; found by coverity
Nick Mathewson 270f279f 2012-07-26T09:53:20 Fix resource leaks in the unit tests; found by coverity
Nick Mathewson 4f3732d7 2012-07-26T09:35:43 Fix various check-after-dereference issues in unit tests: found by coverity
Nick Mathewson f1ce15d9 2012-07-25T16:18:33 Set umask before calling mkstemp in unit tests. Found by coverity
Nick Mathewson 2259777c 2012-07-25T16:05:36 Fix possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson 55533467 2012-07-25T15:59:50 Remove deadcode in http regression tests. Found by coverity.
Nick Mathewson 11c8b317 2012-07-17T11:08:25 Fix a memory leak on error in evhttp_uriencode If we ran out of memory in evhttp_uriencode when allocating the output buffer, we would neglect to call evbuffer_free() on our temporary buffer. Now we always free the temporary buffer. Fixes sourceforge issue 3539887. Thanks to Andrew Cox for reporting this one.
Nick Mathewson 160e58b6 2012-07-16T15:34:18 Win32: avoid crash when waiting forever on zero fds.
Simon Liu be7a95c6 2012-06-15T01:01:05 Make event_pending() threadsafe. (Commit message by Nick)
Nick Mathewson 117e3273 2012-06-14T13:25:10 Add GCC annotations so that the vsprintf functions get checked properly
Nick Mathewson 60f65403 2012-06-06T14:10:11 Merge pull request #57 from rosslagerwall/memleak Fix a couple of memory leaks (found with Valgrind).
Ross Lagerwall 3b2529ac 2012-06-06T21:57:12 Fix a couple of memory leaks (found with Valgrind).
Sebastian Hahn fcec3e80 2012-06-01T05:23:29 Correctly check for arc4random_buf Apparently it's necssary to do an explicit comparison with NULL here. This also gets rid of a compile warning
Greg Hazel bff5f940 2012-05-29T12:39:12 check for arc4random_buf at runtime, on OS X (Tweaked by nickm: Fix up the arcr4andom_buf OSX hack so that the fallback case isn't compiled into the code when we have arc4random_buf() and we are not on OSX. Also add a comment explaining what's up.)
Nick Mathewson faa92253 2012-05-03T16:34:29 Bump version to 2.0.19-stable-dev
Nick Mathewson 8a9b0cdf 2012-05-03T12:33:36 Increment version to 2.0.19-stable
Nick Mathewson e06206eb 2012-05-03T12:15:11 Oops; fix the *right* windows compile issue
Nick Mathewson be7a0be8 2012-05-03T12:05:52 Fix win32 build issues: sleep, pid_t
Nick Mathewson cecb111b 2012-05-02T17:09:11 Start changelog for 2.0.19-stable
Nick Mathewson 265e6779 2012-05-02T16:52:27 Fix evdns build with threads disabled The last evdns change apparently broke it, by using a "base" variable that we were only declaring with threads turned on.
Nick Mathewson 3d9e52ac 2012-05-01T19:52:55 When retransmitting a timed-out DNS request, pick a fresh nameserver. Otherwise, requests initially sent to a failing nameserver would stay there indefinitely, even if other nameservers would work. Fix for sourceforge bug 3518439
Nick Mathewson d873d678 2012-05-01T19:52:49 Make some evdns.c debug logs more verbose
Nick Mathewson 6610fa5a 2012-05-01T17:07:50 dns-example.c can now take a resolv.conf file on the commandline
Nick Mathewson 30f06715 2012-04-30T21:45:43 Merge remote-tracking branch 'github/20_active_prio_inv' into patches-2.0
Nick Mathewson b3887cdf 2012-04-11T21:33:27 Work-around a stupid gcov-breaking bug in OSX 10.6 This only affects the unit tests. Fix found at http://rachelbythebay.com/w/2011/07/12/forkcrash/ (Backport from 2.1)
Mark Ellzey 4e62cd16 2012-03-30T15:08:40 Fixed potential double-readcb execution with openssl bufferevents. the function do_read() will call SSL_read(), and if successful, will call _bufferevent_run_readcb() before returning to consider_reading(). consider_reading() will then check SSL_pending() to make sure all pending data has also been read. If it does not, do_read() is called again. The issue with this is the possibility that the function that is executed by _bufferevent_run_readcb() called bufferevent_disable(ssl_bev, EV_READ) before the second do_read(); In this case, the users read callback is executed a second time. This is potentially bad for applications that expect the bufferevent to stay disabled until further notice. (this is why running openssl bufferevents without DEFER_CALLBACKS has always been troublesome).
Nick Mathewson 2bfda401 2012-04-30T17:30:48 If a higher-priority event becomes active, don't continue running events of the current priority. Bug found by Ralph Castain.
Zack Weinberg 30b6f889 2012-04-27T09:32:51 Generate event-config.h with a single sed script This approach should make the creation of the file more atomic, to fix a bug reported by Dinh. This patch has one change from Zack's original version: it avoids $<, since Dave Hart tells me he thinks that's not so portable. (commit message by nickm)
Nick Mathewson 03614a16 2012-04-20T11:51:13 Merge branch '20_periodic_event_overload_v2' into patches-2.0
Nick Mathewson dfd808cb 2012-04-19T00:25:12 If time has jumped so we'd reschedule a periodic event in the past, schedule it for the future instead Fixes an issue reported on libevent-users in the thread "a dead looping bug when changing system time backward". Previously, if time jumped forward 1 hour[*] and we had a one-second periodic timer event, that event would get invoked 3600 times. That's almost certainly not what anybody wants. In a future version of Libevent, we should expose the amount of time that the callbac kwould have been invoked somehow. [*] Forward time jumps can happen with nonmonotonic clocks, or with clocks that jump on suspend/resume. It can also happen from Libevent's point of view if the user exits from event_base_loop() and doesn't call it again for a while.
Nick Mathewson bec22b41 2012-04-19T18:15:12 Refactor event_persist_closure: raise and extract some common logic
Nick Mathewson 37c4fc8d 2012-04-19T08:11:05 Merge pull request #52 from ghazel/20_evdns_probe cancel the probe request when the server is freed, and ignore cancelled probe callbacks
Greg Hazel 46b80608 2012-04-18T21:41:48 remove redundant DNS_ERR_CANCEL check, move comment
Greg Hazel 94d23360 2012-04-18T21:29:21 cancel the probe request when the server is freed, and ignore cancelled probe callbacks
Nick Mathewson d1a03b2f 2012-04-03T18:31:08 Backport: provide EVENT_LOG_* names, and deprecate _EVENT_LOG_* This is a partial backport of cb9da0bf and a backport of c9635349. Because C doesn't like us to declare identifiers starting with an underscore, Libevent 2.1 has renamed every such identifier. The only change that affects a public API is that the _EVENT_LOG_* macros have been renamed to start with EVENT_LOG instead. The old names are still present, but deprecated. I'm doing this backport because it represents the deprecation of a Libevent 2.0 interface, and folks should have the opportunity to write code that isn't deprecated and works with both 2.0 and 2.1.
Nick Mathewson f775521c 2012-04-03T17:25:36 Fix the website URL in the readme
Sebastian Hahn 4a6fd433 2012-04-03T05:31:20 Configure with gcc older than 2.95 I don't know why people use such ancient gcc versions, but the fix seems straightforward enough to maybe just do it.
Nick Mathewson 4c7ee6b0 2012-04-02T18:12:44 Add missing ) to changelog; spotted by rransom
Nick Mathewson 336dcaea 2012-03-30T10:26:50 Fix a compilation error with MSVC 2005 due to use of mode_t MSVC apparently doesn't have a mode_t defined, though mingw does. Found by Savg He.
Nick Mathewson 98e9119f 2012-03-25T18:56:15 Fix a typo in the bufferevent documentation
Nick Mathewson 25a424fb 2012-03-22T14:35:23 Add an empty changelog section for 2.0.19-stable
Nick Mathewson f0fb2c27 2012-03-22T14:34:01 Bump version to 2.0.18-stable-dev
Nick Mathewson 75401035 2012-03-22T14:00:54 Bump version to 2.0.18-stable
Nick Mathewson 90c0a7df 2012-03-22T13:47:01 Add credits to README
Nick Mathewson 77342926 2012-03-22T12:49:08 Changelog for libevent 2.0.18-stable
Nick Mathewson c41c1a2b 2012-03-13T15:49:49 Merge remote-tracking branch 'sebastian/clang_unknown_warning_options' into patches-2.0
Sebastian Hahn c2c7b39d 2012-03-13T08:33:06 Properly zero the kevent in kq_setup_kevent() Detected by clang
Sebastian Hahn 083296bc 2012-03-13T06:40:56 Don't do clang version detection when disabling some flags When clang 2.9 was around we hoped they'd introduce support for the normalized=id and override-init warnings by 3.0, but they haven't. We should only add the version detection back in when clang actually supports those warnings.
Nick Mathewson bec50680 2012-02-15T20:12:32 Stop crashing in evdns when nameserver probes give a weird error When a nameserver is down, we periodically try sending a "probe" message to that nameserver to see if it has come back up. If a nameserver comes up, we cancel any pending probe messages. Cancelling a probe message while handling the probe's response would result in a access-after-free or a double-free, so when we notice that we're about to call a nameserver up because of having received a probe from it, we need to check whether current response is the response from the probe. There was a case where we didn't to that, though: when the resolver gave us an unusual error response to our request that it resolve google.com. This is pretty rare, but apparently it can happen with some weird cacheing nameservers -- the one on the mikrotik router, for example. Without this patch, we would crash with a NULL pointer derefernce. Thanks to Hannes Sowa for finding this issue and helping me track it down.
Mark Ellzey 2d67b638 2012-02-14T15:37:58 Changed OPENSSL_LDFLAGS to OPENSSL_LIBADD
Mark Ellzey 92781968 2012-02-14T15:01:02 Added OPENSSL_LDFLAGS env variable which is appended to SSL checks. If openssl is not installed system-wide or not compiled as a shared library, some systems require various link flags (e.g., -ld).
Nick Mathewson 03dce42d 2012-02-11T21:17:18 Tweak the evutil_open_closeonexec patch to work on windows, old unixes. Windows doesn't have a mode_t as far as I can tell. Some unixes, iirc, don't like three-argument open without O_CREAT.
Ross Lagerwall d2b5f722 2012-02-11T17:23:17 Make uses of open() close-on-exec safe by introducing evutil_open_closeonexec. In a multi-process/threaded environment, opening fds internally without the close-on-exec flag could leak fds to child processes.
Nick Mathewson 0c483170 2012-02-10T22:20:05 Add an empty section to the changelog for 2.0.18-stable
Nick Mathewson 5a807b7a 2012-02-10T22:17:59 Correct a name in the credits. oops
Nick Mathewson 2d7bf0f7 2012-02-10T22:16:14 Bump version to 2.0.17-stable-dev
Nick Mathewson 83e58ccd 2012-02-10T18:39:31 Update the credits in the readme
Nick Mathewson 0cdbd642 2012-02-10T18:36:10 Finalize the changelog
Nick Mathewson e49e2891 2012-02-10T17:29:53 Update copyright notices to 2012
Nick Mathewson 8152b4c2 2012-02-10T16:49:05 Bump version to 2.0.17-stable
Nick Mathewson 5d7bfa15 2012-02-10T11:24:51 In the kqueue backend, do not report EBADF as an EV_READ We were doing this because of (correct) reports that NetBSD gives an EBADF when you try to add the write side of a pipe for which the read side has been closed. But on most kqueue platforms, that doesn't happen, and on *all* kqueue platforms, reporting a nonexistent fd (which we usually have if we have seen EBADF) as readable tends to give programs a case of the vapors. Nicholas Marriott wrote the original patch here; I did the comment fixes.
Nick Mathewson 19715a60 2012-02-09T15:07:19 Avoid crash when freeing event_iocp and using event_set_mem_functions There was a calloc that needed to be an mm_calloc. Reported by "fffvvvzz" on sourceforge. Ticket 3486114
Nick Mathewson 6f6cebe3 2012-02-06T21:18:25 Bring the changelog up to date