Nick Mathewson
084e68f3f2
New EVLOOP_NO_EXIT_ON_EMPTY option to keep looping even when no events are pending
...
This can be useful if you want to start an event loop and then add or
remove events to it from another thread.
2011-10-05 11:11:44 -04:00
Alexander Drozdov
9593a33fd1
Allow evconnlistener to be created in disabled state.
2011-10-03 12:59:11 -04:00
Nick Mathewson
38674d4a5e
Merge remote-tracking branch 'origin/patches-2.0'
2011-09-12 15:46:54 -04:00
Leonid Evdokimov
94fba5b9ac
Add DNS_ERR_NODATA error code to handle empty replies.
2011-09-12 15:38:05 -04:00
Leonid Evdokimov
2b6eae5999
Fix docstring in dns.h
2011-09-12 15:09:30 -04:00
Nick Mathewson
e20eabd69a
Merge branch '21_enable_debugging'
2011-09-12 11:31:19 -04:00
Nick Mathewson
6207826e70
Clarify event_enable_debug_logging a little
2011-09-12 11:31:02 -04:00
Nick Mathewson
8d3a8500f4
Add evhttp callback for bufferevent creation; this lets evhttp support SSL.
...
Based on a patch uploaded anonymously to sourceforge; cleaned up
by Graham Leggett to work with current libevents.
2011-09-12 10:48:35 -04:00
Nick Mathewson
a37a0c0e35
Make max_dispatch_interval able to apply only to low-priority events
...
Suggested by Alexander Drozdov
2011-08-17 22:03:57 -04:00
Nick Mathewson
fd4de1e7fe
Add event_config function to limit time/callbacks between calls to dispatch
2011-08-17 22:03:57 -04:00
Nick Mathewson
d7451b0523
Merge remote-tracking branch 'origin/patches-2.0'
2011-08-15 11:14:57 -04:00
Leonid Evdokimov
50be5a14b5
Another docstring fix.
2011-08-15 11:11:10 -04:00
Nick Mathewson
e918f15a4c
Merge remote-tracking branch 'origin/patches-2.0'
2011-08-01 10:30:02 -04:00
Nick Mathewson
1183f7e24e
Fix typo in event_compat.h comments.
2011-08-01 10:27:56 -04:00
Nick Mathewson
7d08a28c1c
Merge remote-tracking branch 'github/21_end_of_buffer'
...
Conflicts:
include/event2/buffer.h
2011-07-05 15:07:07 -04:00
Nick Mathewson
21be3dff74
Merge remote-tracking branch 'origin/patches-2.0'
...
Conflicts:
include/event2/buffer.h
include/event2/thread.h
include/event2/util.h
2011-07-05 14:38:21 -04:00
Nick Mathewson
2888faccd1
Revise the event/evbuffer/bufferevent doxygen for clarity and accuracy
2011-07-05 13:01:07 -04:00
Nick Mathewson
261ba63dba
Improve evbuffer_ptr documentation
2011-06-13 17:07:29 -04:00
Nick Mathewson
9f560bfa11
Use "_WIN32", not WIN32: it's standard and we don't need to fake it
...
This patch was automatically generated with perl.
Based on a patch by Peter Rosin.
2011-05-25 20:03:15 -04:00
Nick Mathewson
22d50db805
Merge remote-tracking branch 'origin/patches-2.0'
2011-05-02 23:22:34 -04:00
Nick Mathewson
9556a7d1f6
Add missing words to EVLOOP_NONBLOCK documentation
2011-05-02 23:22:09 -04:00
Nick Mathewson
c8baac9023
Followup for Tomash Brechko's http patch
...
This patch makes bufferevent_disable_hard() non-public, and
adds a comment about what it's for and why it's used.
2011-03-07 21:58:16 -05:00
Tomash Brechko
5dc566284d
Workaround libevent bug
...
https://sourceforge.net/tracker/index.php?func=detail&aid=3078187&group_id=50884&atid=461324
The problem is that bufferevent_disable() doesn't disable EV_WRITE
when 'connecting' flag is set. However from evhttp_connection_reset()
we want to disable EV_WRITE for sure (we are closing the socket next).
So we add bufferevent_disable_hard(), which acts like
bufferevent_disable(), but resets 'connecting' flag before the call to
the actual handler.
TODO: bufferevent_disable_hard() shouldn't be public, remove it from
event2/bufferevent.h.
2011-03-07 21:41:45 -05:00
Nick Mathewson
83fb674a75
Merge remote branch 'origin/patches-2.0'
2011-02-25 10:42:58 -05:00
Dave Hart
b5ab955531
Make --no-libevent-install apply to headers too
2011-02-25 10:35:12 -05:00
Nick Mathewson
e2e3c32239
Merge remote branch 'origin/patches-2.0'
2011-02-22 18:55:05 -05:00
Nick Mathewson
5dc200b7c8
Merge branch '20_uri_nonconformant' into patches-2.0
2011-02-22 18:53:55 -05:00
Constantine Verutin
6350e6c4c5
Add new evhttp_{connection_}set_timeout_tv() functions to set finger-grained http timeouts
2011-02-22 17:52:50 -05:00
Nick Mathewson
a11c30b5fe
Merge remote branch 'origin/patches-2.0'
...
This branch is the big one that merges all the ntp folks' changes
Conflicts:
configure.in
2011-02-22 17:41:27 -05:00
Nick Mathewson
f95bafb608
Be explicit about how long event loops run in event.h documentation
2011-02-22 00:34:49 -05:00
Nick Mathewson
8f5cca47dd
Merge remote branch 'origin/patches-2.0'
2011-02-21 23:27:23 -05:00
Nick Mathewson
f665924649
Correct evhttp_del_accept_socket documentation on whether socket is closed
...
Thanks to Constantine Verutin for pointing this out.
2011-02-15 11:33:40 -05:00
Nick Mathewson
926f8165a7
Clarify event_set_mem_functions doc
2011-02-13 00:54:21 -05:00
Nick Mathewson
95060b54fe
Make URI parser able to tolerate nonconformant URIs.
...
If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when
parsing URIs we get over the wire), then we relax our checks a lot.
Specifically, we do nothing to check for correct characters in the
path, query, and fragment parts of such a URI.
We could do much more here: we could relax our hostname requirements,
deal with spaces differently/better, trap some errors but not others,
etc. But this should solve the worst user-agent compatibility issues
for now; the other issues can wait for a later release.
2011-02-13 00:41:22 -05:00
Nick Mathewson
e72afae068
Add evbuffer_add_file_segment() so one fd can be used efficiently in more than one evbuffer_add_file at a time
2010-12-20 19:25:05 -05:00
Nick Mathewson
e30a82f118
Add event_enable_debug_logging() to control use of debug logs
...
Previously, debug logs were turned on if you built with -DUSE_DEBUG
and off otherwise. This make builds with -DUSE_DEBUG hideously slow
and other builds unable to get debug logs.
This is based off a patch by Ralph Castain from October. It tries a
little harder to avoid needless function calls, it doesn't require
stdbool, and makes the controlling parameter a mask rather than a
boolean so that we can later support enabling only the debugging
messages for the parts of Libevent you're trying to debug.
2010-12-16 13:58:56 -05:00
Nick Mathewson
57689c4484
Document that the cpu_hint is only used on Windows with IOCP for now
2010-12-09 12:17:11 -05:00
Nick Mathewson
bb0d2b4e85
Consistentize tabs
2010-12-09 11:47:54 -05:00
Nick Mathewson
22f4af6580
Remove end-of-line whitespace
2010-12-09 11:43:12 -05:00
Constantine Verutin
d23839fc6e
Reject overlong http requests early when Expect:100-continue is set
2010-12-07 11:43:52 -05:00
Christopher Davis
fa9305f8f5
Preliminary support for Continue expectation in evhttp.
2010-11-29 18:25:04 -08:00
Christopher Davis
aab8c38b76
Add evhttp server alias interface, correct flagging of proxy requests.
...
evhttp needs to be mindful of all hostnames and addresses that clients
use to contact the main server and vhosts to know the difference between
proxy requests and non-proxy requests.
2010-11-26 03:58:28 -08:00
Nick Mathewson
2e5a175bf3
Merge remote branch 'github/20_once_fixes'
2010-11-25 23:03:46 -05:00
Kevin Bowling
1cd45e5660
If not WIN32, include <sys/socket.h> in event2/util.h.
2010-11-23 22:24:46 -05:00
Kevin Bowling
2e2a3d7bb6
Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
2010-11-23 22:23:19 -05:00
Nick Mathewson
652024b6b1
Remove _event_initialized(); make event_initialized() a function(); make it consistent on windows and non-windows
2010-11-23 13:08:07 -05:00
Nick Mathewson
88be27dc06
Document event_get_assignment
2010-11-23 12:26:46 -05:00
Nick Mathewson
e431bcd686
Note that reentrant calls to libevent from logging cbs may fail badly
2010-11-23 12:26:34 -05:00
Nick Mathewson
7bcace2d54
Fix some irix compilation warnings spotted by Kevin Bowling
2010-11-22 21:02:34 -05:00
Nick Mathewson
26049c2f93
Merge remote branch 'github/20_getaddrinfo_cancel_v2'
2010-11-22 16:24:52 -05:00