3292 Commits

Author SHA1 Message Date
Azat Khuzhin
3ca9d43d32 evdns: add retry/reissue tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE 2014-09-30 01:39:51 +04:00
Azat Khuzhin
74d0eee89b evdns: fix EVDNS_BASE_DISABLE_WHEN_INACTIVE in case retransmit/retry 2014-09-30 01:39:51 +04:00
Nick Mathewson
07b5e45ba5 Merge remote-tracking branch 'origin/patches-2.0' 2014-09-18 15:08:57 -04:00
ufo2243
b34e4ac3a4 [Bugfix] fix bufferevent setwatermark suspend_read 2014-09-18 15:07:41 -04:00
Nick Mathewson
89c1a3b7fe Fix several memory leaks in the unit tests.
Also add a comment to buffer.c about why we call
evbuffer_file_segment_free on failure to add the segment.
2014-09-18 12:40:38 -04:00
Nick Mathewson
364c110687 Fix for a677b72bd6d9d378daf9775966aa8ca574e26e67 2014-09-18 12:12:36 -04:00
Nick Mathewson
fb57b8badc Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from()
The call was safe, but coverity couldn't tell. CID 1239294.
2014-09-18 12:08:50 -04:00
Nick Mathewson
ca5b5c7d86 Use a more precise calculation for max in time-ratelim.c
CID 1239297
2014-09-18 12:04:16 -04:00
Nick Mathewson
a677b72bd6 Use evutil_weakrand() in unit tests.
(Coverity doesn't like random() or rand().  We don't care; this is
for unit tests.)

Fixes CID 1239298, 1239296, 1239295, 1239293.
2014-09-18 12:02:13 -04:00
Nick Mathewson
76643dd0e7 Fix a c90 warning 2014-09-18 11:54:39 -04:00
Nick Mathewson
c119f2416c Fix a dead-code warning in unit tests. CID 1193548 2014-09-18 11:54:04 -04:00
Nick Mathewson
37390574b0 Fix a use-after-free in unit tests. CID 752027 2014-09-18 11:52:16 -04:00
Nick Mathewson
c243dbf4c8 Merge pull request #168 from ufo2243/master
make bufferevent_getwatermark api more robust
2014-09-18 11:44:11 -04:00
Nick Mathewson
c8c7fa3a16 Merge pull request #119 from ldx/winhosts
Fix hosts file use on Windows.
2014-09-18 11:41:18 -04:00
John Ohl
3cc0eace2e Fix use-after-free error in EV_CLOSURE_EVENT callback 2014-09-18 11:37:28 -04:00
Nick Mathewson
35f107de92 Merge remote-tracking branch 'origin/patches-2.0' 2014-09-18 11:36:08 -04:00
Maks Naumov
79800df7c7 regress_buffer: fix 'memcmp' compare size 2014-09-18 11:33:20 -04:00
Nick Mathewson
73615a3723 Merge pull request #118 from azat/http-forward-family-to-bufferevent
Add evhttp_connection_set_family() to set addrinfo->family for DNS requests
2014-09-18 11:31:52 -04:00
Nick Mathewson
08c88ea563 use correct tt macro for pointer compare 2014-09-18 11:28:19 -04:00
Nick Mathewson
afce2721c2 Merge pull request #128 from azat/tests-disable-when-inactive-v5
Some tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE flag
2014-09-18 11:25:27 -04:00
Nick Mathewson
a7d5dabf96 Merge pull request #129 from azat/disable-probing-with-disable-when-inactive-v2
evdns: disable probing with EVDNS_BASE_DISABLE_WHEN_INACTIVE
2014-09-18 11:24:56 -04:00
ufo2243
a21e5108c2 make bufferevent_getwatermark api more robust 2014-09-12 11:51:59 +08:00
Nick Mathewson
56ad623737 Merge pull request #167 from snikulov/pr_libevent_cmake_upd
updates in cmake build
2014-09-08 15:37:31 -04:00
Nick Mathewson
80347e6c93 Merge pull request #103 from ufo2243/master
[Bugfix] fix grammer error
2014-09-03 09:29:59 -04:00
ufo2243
3a4d249c9d [Bugfix] fix grammer error 2014-09-03 10:55:27 +08:00
Sergey Nikulov
27bd9faf49 updates in cmake build 2014-09-02 18:25:52 +04:00
Nick Mathewson
6a53d15383 Correctly handle allocation failures in evdns_getaddrinfo
Kuldeep Gupta appears to have used some kind of automated tool to
find this and generate a patch for half the issue as #149.
2014-08-29 15:26:56 -04:00
Nick Mathewson
9d6acdc551 Merge remote-tracking branch 'origin/patches-2.0' 2014-08-29 15:00:33 -04:00
Nick Mathewson
60f8f729d3 Consistently check for failure from evbuffer_pullup()
Closes issue #148.
2014-08-29 14:59:17 -04:00
Nick Mathewson
9f3a8acfa8 Merge pull request #153 from azat/tests-simplestsignal
test/regress: add simplestsignal: to track reorder bugs separately
2014-08-29 14:38:09 -04:00
Nick Mathewson
8bf769c47a Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	sample/http-server.c
2014-08-29 14:32:10 -04:00
Nick Mathewson
6466e88ac1 Use FindClose for handle from FindFirstFile in http-server.c
Noted by Miles Chan as issue #145
2014-08-29 14:31:07 -04:00
Nick Mathewson
f691389e82 Change return type of evutil_load_windows_system_library_ to HMODULE
Noted by Miles Chan as issue #146
2014-08-29 14:28:09 -04:00
John Ohl
2c82aa0fef Fix issue #127, double free for filterevents that use BEV_OPT_CLOSE_ON_FREE 2014-08-29 12:43:00 -04:00
Nick Mathewson
571295bdf8 Merge remote-tracking branch 'origin/patches-2.0' 2014-08-18 10:14:29 -04:00
Pierre Phaneuf
1a8295a316 Add a few files created by "make verify" to .gitignore. 2014-08-18 10:13:52 -04:00
Azat Khuzhin
b897beff6a test/regress: add simplestsignal: to track reorder bugs separately 2014-06-29 17:39:33 +04:00
Nick Mathewson
6ec949265a Merge pull request #140 from vapier/ignore
ignore config.cache/test-driver files
2014-06-14 23:44:47 -04:00
Nick Mathewson
c6becf2b2c Merge pull request #143 from vapier/disable-sample
add a --disable-samples configure flag
2014-06-14 23:44:18 -04:00
Mike Frysinger
0c492b33f9 add a --disable-samples configure flag
For people building & installing libevent in a distro, building all these
sample apps are not useful.  Add a flag to turn them off.
2014-06-13 17:19:50 -04:00
Mike Frysinger
c83f3333a3 ignore config.cache/test-driver files
config.cache is generated when you run `./configure -C`.

test-driver comes from newer autotools.
2014-06-13 17:19:24 -04:00
Adrian Chadd
6fd73944c2 Handle ENOTCAPABLE from FreeBSD - this is returned if an event in the
changelist is for an FD that has been closed.
2014-06-07 12:57:02 -07:00
Nick Mathewson
6d72bdca01 Make http-server.c output into good html5 2014-05-30 13:53:27 -04:00
Nick Mathewson
8da5a1864c Update to a more recent tinytest_macros.
This one has less of a tendency to suppress important type warnings.
2014-05-08 13:21:49 -04:00
Nick Mathewson
28db827efa Merge pull request #132 from credil/master
ignore one more test binary
2014-04-14 10:00:51 -04:00
Michael Richardson
b6593aab6b ignore one more test binary 2014-04-13 13:07:16 -04:00
Azat Khuzhin
5ca9e97ed0 regress dns: drop alarm() (since windows don't have it) 2014-04-11 18:50:10 +04:00
Azat Khuzhin
d83b3371e9 evdns: we don't need to add retry timer in transmit_to it will be done on fail 2014-04-10 19:46:11 +04:00
Azat Khuzhin
fea86a64c5 evdns: add regress test for flag EVDNS_BASE_DISABLE_WHEN_INACTIVE without ns 2014-04-10 01:37:12 +04:00
Azat Khuzhin
ad0493eebf evdns: add regress for EVDNS_BASE_DISABLE_WHEN_INACTIVE base flag 2014-04-10 01:11:03 +04:00