120 Commits

Author SHA1 Message Date
Nick Mathewson
9b45a4e7c0 We were distributing the wrong event-config.h with our source distributions. Fix that.
svn:r1288
2009-05-15 01:36:31 +00:00
Nick Mathewson
5e0563ba9a Fix dangling pointer in epoll after epoll_recalc().
This is based on patch 2790759 from Kevin Springborn.  His comments on
sourceforge:

  Problem:
  The failure case is as follows: Event is added using epoll_add (a
  direct pointer is stored in the user_data section), epoll_recalc is
  called and the fds array is moved (invalidating the user_data
  pointer stored in epoll).  epoll_dispatch is called for the added
  event and accesses evepoll based on the invalid pointer (set before
  the fds array was relocated).

  Solution:
  Dispatch has access to the epollop structure, so given the fd we can
  find the corresponding evepoll struct. Use data.fd instead of
  data.ptr and store the fd corresponding to the event. This way when
  epoll_recalc moves the fds array (and updates the fds array pointer
  in epollop), the evepoll calculation in dispatch still finds the
  valid evepoll struct.

svn:r1282
2009-05-12 18:27:45 +00:00
Niels Provos
23967f73a2 Remove the limit on size of HTTP headers by removing static buffers
svn:r1240
2009-04-24 16:08:30 +00:00
Nick Mathewson
749f4ce319 [backport] Fix min_heap_erase when we remove an element from the middle of the heap.
Previously, we could lose the heap property when we removed an item
whose parent was greater than the last element in the heap.  We would
replace the removed item with the last element, and consider shifting
it down, but we wouldn't consider shifting it up.

Patch from Marko Kreen.

svn:r1227
2009-04-23 00:02:19 +00:00
Niels Provos
c1bd938562 Fix parsing of queries where the encoded queries contained \r, \n or +
svn:r1155
2009-04-11 04:12:46 +00:00
Niels Provos
59513ee206 from trunk: include Doxyfile in tar ball; from Jeff Garzik
svn:r1126
2009-03-12 17:45:13 +00:00
Niels Provos
f06b29b9e2 off-by-one error in epoll_recalc; reported by Victor Goya
svn:r1124
2009-03-12 17:03:21 +00:00
Nick Mathewson
4cf8138b8f Make evdns_resolve_reverse args const.
svn:r1094
2009-02-02 19:20:49 +00:00
Niels Provos
092baefa4e from trunk: fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
svn:r1036
2009-01-22 06:26:32 +00:00
Niels Provos
636e74a7b9 from trunk: rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku
svn:r1034
2009-01-22 02:49:57 +00:00
Niels Provos
7682ff80ba from trunk: rename the backend from "event ports" to "evport" - this will allow environment based disabling to work
svn:r1029
2009-01-19 23:54:27 +00:00
Niels Provos
3b33618f74 forgot ChangeLog entry
svn:r1028
2009-01-19 23:53:45 +00:00
Niels Provos
64fc3c7c30 clean up buffered data on reset; reported by Brian O'Kelley
svn:r1016
2009-01-16 00:29:27 +00:00
Niels Provos
cad8703a2a Fix a memory leak by not running explicit close detection for server connections.
svn:r967
2008-12-19 22:29:41 +00:00
Niels Provos
f383ee29d9 revert: Fix a memory leak with http connections owned by the server.
svn:r966
2008-12-19 21:53:23 +00:00
Niels Provos
3e55a52926 Fix a memory leak with http connections owned by the server.
svn:r965
2008-12-19 21:41:03 +00:00
Niels Provos
9dcf11060a fix a memory leak when reading multi-line headers
svn:r964
2008-12-19 21:34:12 +00:00
Niels Provos
1958f3a7ba from trunk: fix a typo in setting the global event base; reported by lance
svn:r954
2008-11-27 19:59:06 +00:00
Niels Provos
e92d88c576 from trunk: Clear the timer cache when leaving the event loop; reported by Robin Haberkorn
svn:r951
2008-11-27 19:29:22 +00:00
Niels Provos
0a41d762ec from trunk: Allow setting of local port for evhttp connections to support millions of connections from a single system; from Richard Jones
svn:r949
2008-11-16 23:26:38 +00:00
Niels Provos
3ad06489ee from trunk: only bind the socket on connect when a local address has been provided; reported by Ajejo Sanchez
svn:r947
2008-11-15 05:29:39 +00:00
Niels Provos
b93c182ff3 from trunk: clear the timer cache on entering event loop; reported by Victor Chang
svn:r945
2008-10-30 19:40:35 +00:00
Niels Provos
111ddeddac fix merge error: event_add would not return error for some backends; from Dean McNamee
svn:r943
2008-10-03 15:23:47 +00:00
Niels Provos
69119a402e from trunk: do not remove accept-encoding header in make request
svn:r939
2008-09-07 23:26:47 +00:00
Niels Provos
d2386bce75 Fix a merge problem in which name_from_addr returned pointers to the stack; found by Jiang Hong.
svn:r934
2008-09-04 01:09:54 +00:00
Niels Provos
bc465d0a80 from trunk: Match the query in DNS replies to the query in the request; from Vsevolod Stakhov
svn:r932
2008-08-30 23:24:25 +00:00
Niels Provos
2821152f7f from trunk: Fix a bug where headers arriving in multiple packets were not parsed; fix from Jiang Hong; test by me.
svn:r929
2008-08-19 11:38:32 +00:00
Niels Provos
abe3ac118c from trunk: do not warn on accept when errno is egain|eintr
svn:r926
2008-07-25 05:23:30 +00:00
Niels Provos
541290f635 from trunk: make event_add not change any state if it fails; repoted by Ian Bell
svn:r924
2008-07-25 01:34:22 +00:00
Niels Provos
534f6657f8 from trunk: fix off by one errors in devpoll; from Ian Bell
svn:r922
2008-07-25 01:19:53 +00:00
Niels Provos
7c7ab27960 from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov
svn:r919
2008-07-25 00:53:17 +00:00
Niels Provos
730c7132bd add libevent.vcproj file to distribution to help with Windows build
svn:r916
2008-07-24 23:58:03 +00:00
Niels Provos
21c562897d from trunk: restore signal handlers correctly when we deallocate the signal base
svn:r914
2008-07-19 23:41:33 +00:00
Niels Provos
e11392387a from trunk: if we change the timeouts on bufferevents, we might have to readd pending events
svn:r912
2008-07-17 14:26:40 +00:00
Niels Provos
1b40a378d1 from trunk: fix cname replies
svn:r908
2008-07-13 20:20:10 +00:00
Niels Provos
4a13b22f00 deal with evbuffer_read() returning -1 on EINTR|EAGAIN; from Adam Langley
svn:r906
2008-07-12 01:50:11 +00:00
Niels Provos
dfa53321e3 forgot to add Alexander Drozdov as bug reporter in ChangeLog
svn:r905
2008-07-11 16:11:16 +00:00
Niels Provos
0e535d2f32 from trunk: support multiple events listening on the same signal; make signals regular events that go on the same event queue
svn:r902
2008-07-11 15:59:29 +00:00
Niels Provos
459c78a20a from trunk: fix a bug where deleting signals with kqueue would delete subsequent adds
svn:r900
2008-07-11 15:17:35 +00:00
Niels Provos
537e122101 from trunk: detect CLOCK_MONOTONIC at runtime for evdns
svn:r897
2008-07-02 04:41:11 +00:00
Niels Provos
3add69df67 from trunk: reject negative content-length headers
svn:r895
2008-07-02 04:28:12 +00:00
Niels Provos
e7d5dfda49 from trunk: support multi-line HTTP headers; based on a patch from Moshe Litvin
svn:r893
2008-06-30 01:55:13 +00:00
Niels Provos
efb50876fd from trunk: correct handling of trailing headers in chunked replies; from Scott Lamb
svn:r892
2008-06-30 01:04:21 +00:00
Niels Provos
130a8a1308 switch all uses of [v]snprintf to evutil
svn:r889
2008-06-28 01:47:01 +00:00
Niels Provos
877fa44dda evutil now includes stdarg.h directly
svn:r888
2008-06-28 00:50:52 +00:00
Niels Provos
33bb64c1e0 fix support of fixed-sized entries in event_rpcgen
svn:r885
2008-06-25 20:52:29 +00:00
Niels Provos
570dd04a07 forgot to add changelog entry: fix windows build
svn:r881
2008-06-25 16:06:50 +00:00
Niels Provos
fb0b274e97 from trunk: do not use SO_REUSEADDR when connecting
svn:r855
2008-06-20 06:55:26 +00:00
Nick Mathewson
921693c44e Rename INPUT and OUTPUT to EVRPC_INPUT and EVRPC_OUTPUT, but keep the INPUT/OUTPUT aliases on non-win32 platforms to maintain backwards compatibility.
svn:r851
2008-06-14 17:42:05 +00:00
Niels Provos
d5c3cdca20 from trunk: allow min_heap_erase to be called on removed members; from liusifan
svn:r850
2008-06-12 14:45:29 +00:00