summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Correctly check for arc4random_bufosx_weak_symbol_funosx_weak_smybol_funosx_funSebastian Hahn2012-06-01
| | | | | Apparently it's necssary to do an explicit comparison with NULL here. This also gets rid of a compile warning
* check for arc4random_buf at runtime, on OS XGreg Hazel2012-05-31
| | | | | | | (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.)
* Bump version to 2.0.19-stable-devNick Mathewson2012-05-03
|
* Increment version to 2.0.19-stableNick Mathewson2012-05-03
|
* Oops; fix the *right* windows compile issueNick Mathewson2012-05-03
|
* Fix win32 build issues: sleep, pid_tNick Mathewson2012-05-03
|
* Start changelog for 2.0.19-stableNick Mathewson2012-05-02
|
* Fix evdns build with threads disabledNick Mathewson2012-05-02
| | | | | The last evdns change apparently broke it, by using a "base" variable that we were only declaring with threads turned on.
* When retransmitting a timed-out DNS request, pick a fresh nameserver.Nick Mathewson2012-05-01
| | | | | | | Otherwise, requests initially sent to a failing nameserver would stay there indefinitely, even if other nameservers would work. Fix for sourceforge bug 3518439
* Make some evdns.c debug logs more verboseNick Mathewson2012-05-01
|
* dns-example.c can now take a resolv.conf file on the commandlineNick Mathewson2012-05-01
|
* Merge remote-tracking branch 'github/20_active_prio_inv' into patches-2.0Nick Mathewson2012-04-30
|\
| * If a higher-priority event becomes active, don't continue running events of ↵Nick Mathewson2012-04-30
| | | | | | | | | | | | the current priority. Bug found by Ralph Castain.
* | Work-around a stupid gcov-breaking bug in OSX 10.6Nick Mathewson2012-04-30
| | | | | | | | | | | | | | | | This only affects the unit tests. Fix found at http://rachelbythebay.com/w/2011/07/12/forkcrash/ (Backport from 2.1)
* | Fixed potential double-readcb execution with openssl bufferevents.Mark Ellzey2012-04-30
|/ | | | | | | | | | | | | | | | | 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).
* Generate event-config.h with a single sed scriptZack Weinberg2012-04-27
| | | | | | | | | | 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)
* Merge branch '20_periodic_event_overload_v2' into patches-2.0Nick Mathewson2012-04-20
|\
| * If time has jumped so we'd reschedule a periodic event in the past, schedule ↵Nick Mathewson2012-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Refactor event_persist_closure: raise and extract some common logicNick Mathewson2012-04-19
| |
* | Merge pull request #52 from ghazel/20_evdns_probeNick Mathewson2012-04-19
|\ \ | |/ |/| cancel the probe request when the server is freed, and ignore cancelled probe callbacks
| * remove redundant DNS_ERR_CANCEL check, move commentGreg Hazel2012-04-18
| |
| * cancel the probe request when the server is freed, and ignore cancelled ↵Greg Hazel2012-04-18
| | | | | | | | probe callbacks
* | Backport: provide EVENT_LOG_* names, and deprecate _EVENT_LOG_*Nick Mathewson2012-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix the website URL in the readmeNick Mathewson2012-04-03
| |
* | Configure with gcc older than 2.95ancient_gccSebastian Hahn2012-04-03
| | | | | | | | | | I don't know why people use such ancient gcc versions, but the fix seems straightforward enough to maybe just do it.
* | Add missing ) to changelog; spotted by rransomNick Mathewson2012-04-02
| |
* | Fix a compilation error with MSVC 2005 due to use of mode_tNick Mathewson2012-03-30
| | | | | | | | | | | | MSVC apparently doesn't have a mode_t defined, though mingw does. Found by Savg He.
* | Fix a typo in the bufferevent documentationNick Mathewson2012-03-25
| |
* | Add an empty changelog section for 2.0.19-stableNick Mathewson2012-03-22
| |
* | Bump version to 2.0.18-stable-devNick Mathewson2012-03-22
| |
* | Bump version to 2.0.18-stableNick Mathewson2012-03-22
| |
* | Add credits to READMENick Mathewson2012-03-22
| |
* | Changelog for libevent 2.0.18-stableNick Mathewson2012-03-22
| |
* | Merge remote-tracking branch 'sebastian/clang_unknown_warning_options' into ↵Nick Mathewson2012-03-13
|\ \ | | | | | | | | | patches-2.0
| * | Don't do clang version detection when disabling some flagsclang_unknown_warning_optionsSebastian Hahn2012-03-13
| |/ | | | | | | | | | | | | 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.
* | Properly zero the kevent in kq_setup_kevent()kq_setup_kevent-fixSebastian Hahn2012-03-13
|/ | | | Detected by clang
* Stop crashing in evdns when nameserver probes give a weird errorNick Mathewson2012-02-15
| | | | | | | | | | | | | | | | | | | | | | 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.
* Changed OPENSSL_LDFLAGS to OPENSSL_LIBADDMark Ellzey2012-02-14
|
* Added OPENSSL_LDFLAGS env variable which is appended to SSL checks.Mark Ellzey2012-02-14
| | | | | If openssl is not installed system-wide or not compiled as a shared library, some systems require various link flags (e.g., -ld).
* Tweak the evutil_open_closeonexec patch to work on windows, old unixes.Nick Mathewson2012-02-11
| | | | | | 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.
* Make uses of open() close-on-exec safe by introducing evutil_open_closeonexec.Ross Lagerwall2012-02-11
| | | | | In a multi-process/threaded environment, opening fds internally without the close-on-exec flag could leak fds to child processes.
* Add an empty section to the changelog for 2.0.18-stableNick Mathewson2012-02-10
|
* Correct a name in the credits. oopsNick Mathewson2012-02-10
|
* Bump version to 2.0.17-stable-devNick Mathewson2012-02-10
|
* Update the credits in the readmeNick Mathewson2012-02-10
|
* Finalize the changelogNick Mathewson2012-02-10
|
* Update copyright notices to 2012Nick Mathewson2012-02-10
|
* Bump version to 2.0.17-stableNick Mathewson2012-02-10
|
* In the kqueue backend, do not report EBADF as an EV_READNick Mathewson2012-02-10
| | | | | | | | | | | | 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.
* Avoid crash when freeing event_iocp and using event_set_mem_functionsNick Mathewson2012-02-09
| | | | | | There was a calloc that needed to be an mm_calloc. Reported by "fffvvvzz" on sourceforge. Ticket 3486114