]> granicus.if.org Git - libevent/log
libevent
11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 13 Aug 2013 15:14:11 +0000 (11:14 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoOops; revert testing code
Nick Mathewson [Tue, 13 Aug 2013 15:12:25 +0000 (11:12 -0400)]
Oops; revert testing code

11 years agoAvoid other RNG initialization FS reads when urandom file is specified
Nick Mathewson [Tue, 13 Aug 2013 14:59:27 +0000 (10:59 -0400)]
Avoid other RNG initialization FS reads when urandom file is specified

11 years agoFinish a sentence
Nick Mathewson [Tue, 13 Aug 2013 14:59:20 +0000 (10:59 -0400)]
Finish a sentence

11 years agosample: drop uri_root from base_url in http-server.
Azat Khuzhin [Tue, 13 Aug 2013 14:19:50 +0000 (18:19 +0400)]
sample: drop uri_root from base_url in http-server.

By default there is "0.0.0.0", and this address will work only from
the same machine, and besides there is no need in uri_root in base_url,
because it will be added automatically by browser.

11 years agoAdd an assertion for another of the complaints from coverity. See 1b065d07df196
Nick Mathewson [Wed, 7 Aug 2013 00:00:53 +0000 (20:00 -0400)]
Add an assertion for another of the complaints from coverity. See 1b065d07df196

11 years agotest_evutil_rtrim: add another missing check.
Nick Mathewson [Tue, 6 Aug 2013 23:42:20 +0000 (19:42 -0400)]
test_evutil_rtrim: add another missing check.

11 years agoFinalize tests: add a missing check
Nick Mathewson [Tue, 6 Aug 2013 23:39:35 +0000 (19:39 -0400)]
Finalize tests: add a missing check

11 years agoDNS tests: add a missing check
Nick Mathewson [Tue, 6 Aug 2013 23:38:48 +0000 (19:38 -0400)]
DNS tests: add a missing check

11 years agoFix some crash-on-fail cases in DNS regression tests
Nick Mathewson [Tue, 6 Aug 2013 23:35:56 +0000 (19:35 -0400)]
Fix some crash-on-fail cases in DNS regression tests

Found by coverity.

11 years agoAdd missing check to test_evbuffer_file_segment_add_cleanup_cb
Nick Mathewson [Tue, 6 Aug 2013 23:33:45 +0000 (19:33 -0400)]
Add missing check to test_evbuffer_file_segment_add_cleanup_cb

11 years agoFix a logic error in test_evbuffer_freeze
Nick Mathewson [Tue, 6 Aug 2013 23:32:21 +0000 (19:32 -0400)]
Fix a logic error in test_evbuffer_freeze

11 years agoFix a (failure-only) null dereference in the unit tests
Nick Mathewson [Tue, 6 Aug 2013 23:31:26 +0000 (19:31 -0400)]
Fix a (failure-only) null dereference in the unit tests

11 years agoUse void casts to suppress some "unchecked return value" warns
Nick Mathewson [Tue, 6 Aug 2013 23:28:53 +0000 (19:28 -0400)]
Use void casts to suppress some "unchecked return value" warns

11 years agosample/le-proxy: Fail more gracefully if opening listener fails
Nick Mathewson [Tue, 6 Aug 2013 23:23:36 +0000 (19:23 -0400)]
sample/le-proxy: Fail more gracefully if opening listener fails

11 years agoFix an unlikely but possible error case for http connections
Nick Mathewson [Tue, 6 Aug 2013 23:17:08 +0000 (19:17 -0400)]
Fix an unlikely but possible error case for http connections

Found by coverity

11 years agoMove event_debug_note_teardown_ before mm_free.
Nick Mathewson [Tue, 6 Aug 2013 23:08:42 +0000 (19:08 -0400)]
Move event_debug_note_teardown_ before mm_free.

This isn't a bug, since only the pointer value of ev was used, but
it's probably best not to tempt fate.  Found by coverity.

11 years agoAdd some assertions to please coverity.
Nick Mathewson [Tue, 6 Aug 2013 23:06:58 +0000 (19:06 -0400)]
Add some assertions to please coverity.

In event_process_active_single_queue, EVLIST_INIT must be set on any
event that uses one of the event-only closures, and so "ev" will be
set in those cases.  But coverity's worried here (CIDs numerous).  So
instead, just add the assertions that should make it happy.

11 years agoFix compilation
Nick Mathewson [Tue, 6 Aug 2013 21:51:21 +0000 (17:51 -0400)]
Fix compilation

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 6 Aug 2013 21:29:34 +0000 (17:29 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
arc4random.c

11 years agoAdd evutil_secure_rng_set_urandom_device_file
Nick Mathewson [Tue, 6 Aug 2013 21:06:23 +0000 (17:06 -0400)]
Add evutil_secure_rng_set_urandom_device_file

This experimental function is needed for some seccomp2 hackery to
work, and should have no effect for systems that don't use it.

11 years agoRemove an unreachable return statement in minheap-internal.h
Nick Mathewson [Thu, 1 Aug 2013 14:40:08 +0000 (10:40 -0400)]
Remove an unreachable return statement in minheap-internal.h

Found by Brian Utterback; see http://bugs.ntp.org/show_bug.cgi?id=2446

11 years agoAvoid leaking segment mappings when offset is not a page multiple
Nick Mathewson [Thu, 1 Aug 2013 02:23:16 +0000 (22:23 -0400)]
Avoid leaking segment mappings when offset is not a page multiple

Found by Bob / Black Hole on the mailing list.

11 years agoAdd checks for evhttp_connection_get_server() in unit tests.
Maxime Henrion [Wed, 31 Jul 2013 15:02:07 +0000 (15:02 +0000)]
Add checks for evhttp_connection_get_server() in unit tests.

They validate that this function behave as expected; that is, it returns
NULL for outgoing connections, and returns the HTTP server object that
received the connection for incoming ones.

11 years agoAdd evhttp_connection_get_server().
Maxime Henrion [Wed, 24 Jul 2013 20:50:05 +0000 (20:50 +0000)]
Add evhttp_connection_get_server().

11 years agoMerge remote-tracking branch 'ellzey/bev_ratelimit_get_token_cfg'
Nick Mathewson [Tue, 30 Jul 2013 14:44:42 +0000 (10:44 -0400)]
Merge remote-tracking branch 'ellzey/bev_ratelimit_get_token_cfg'

11 years agoAdd Maxime Henrion to README
Nick Mathewson [Mon, 29 Jul 2013 13:10:24 +0000 (09:10 -0400)]
Add Maxime Henrion to README

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sun, 21 Jul 2013 11:27:49 +0000 (13:27 +0200)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agolibevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
Frank Denis [Sat, 20 Jul 2013 21:02:49 +0000 (14:02 -0700)]
libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)

11 years agoPass and return const for bufferevent_get_token_bucket_cfg
Mark Ellzey [Thu, 11 Jul 2013 20:26:43 +0000 (16:26 -0400)]
Pass and return const for bufferevent_get_token_bucket_cfg

11 years agoAdd function to fetch underlying ratelimit cfg
Mark Ellzey [Thu, 11 Jul 2013 16:31:39 +0000 (12:31 -0400)]
Add function to fetch underlying ratelimit cfg

bufferevent_get_token_bucket_cfg() will return the struct ev_token_bucket_cfg
for a bufferevent if available.

11 years agoMerge pull request #69 from makotokato/clang
Nick Mathewson [Thu, 11 Jul 2013 13:57:16 +0000 (06:57 -0700)]
Merge pull request #69 from makotokato/clang

Don't use return since return type is void and build error occurs using ...

11 years agoWe should return after arc4random_buf()
Makoto Kato [Wed, 10 Jul 2013 02:02:43 +0000 (11:02 +0900)]
We should return after arc4random_buf()

11 years agoDon't use return since return type is void and build error occurs using clang
Makoto Kato [Tue, 9 Jul 2013 02:50:33 +0000 (11:50 +0900)]
Don't use return since return type is void and build error occurs using clang

11 years agoAdded event_base_get_num_events()
Mobai Zhang [Tue, 2 Jul 2013 20:01:02 +0000 (16:01 -0400)]
Added event_base_get_num_events()

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 10 Jun 2013 19:17:34 +0000 (15:17 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoMerge remote-tracking branch 'public/pr/79' into patches-2.0
Nick Mathewson [Mon, 10 Jun 2013 19:16:13 +0000 (15:16 -0400)]
Merge remote-tracking branch 'public/pr/79' into patches-2.0

11 years agoMerge branch '21_evdns_log_debug'
Nick Mathewson [Mon, 10 Jun 2013 14:47:35 +0000 (10:47 -0400)]
Merge branch '21_evdns_log_debug'

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 10 Jun 2013 14:47:28 +0000 (10:47 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoDocument that arc4random is not a great cryptographic PRNG.
Nick Mathewson [Mon, 10 Jun 2013 14:38:12 +0000 (10:38 -0400)]
Document that arc4random is not a great cryptographic PRNG.

11 years agoWhen we seed from /proc/sys/kernel/random/uuid, count it as success
Nick Mathewson [Mon, 10 Jun 2013 14:33:56 +0000 (10:33 -0400)]
When we seed from /proc/sys/kernel/random/uuid, count it as success

Found by Joseph Spadavecchia

11 years agorestore the comment
Greg Hazel [Wed, 29 May 2013 21:19:14 +0000 (14:19 -0700)]
restore the comment

11 years agoFix SEGFAULT after evdns_base_resume if no nameservers installed.
Azat Khuzhin [Fri, 10 May 2013 23:53:11 +0000 (03:53 +0400)]
Fix SEGFAULT after evdns_base_resume if no nameservers installed.

If there is no nameservers installed, using
evdns_base_nameserver_ip_add(), than evdns_base_resume() will SEGFAULT,
because of NULL dereference in evdns_requests_pump_waiting_queue()

Conflicts:
evdns.c

11 years agoActually use the log facility for reporting evdns problems.
Nick Mathewson [Wed, 29 May 2013 20:26:50 +0000 (16:26 -0400)]
Actually use the log facility for reporting evdns problems.

Fixes issue #63.  Also refactors the evdns logging and log backend a
bit, so that it wastes a little less code.

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 29 May 2013 17:32:47 +0000 (13:32 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoUse windows vsnprintf fixup logic on all windows environments
Nick Mathewson [Wed, 29 May 2013 17:30:56 +0000 (13:30 -0400)]
Use windows vsnprintf fixup logic on all windows environments

Previously I'd relied on mingw to provide a vsnprintf with a
conformant return value.  But it appears that some mingw
environments don't do that.

11 years agoMerge remote-tracking branch 'origin/pr/62'
Nick Mathewson [Tue, 28 May 2013 15:30:14 +0000 (11:30 -0400)]
Merge remote-tracking branch 'origin/pr/62'

11 years agoRemove a debugging assert that should not have been left in
Nick Mathewson [Tue, 28 May 2013 14:14:51 +0000 (10:14 -0400)]
Remove a debugging assert that should not have been left in

11 years agoFix locking in bufferevent_get_options_().
Maxime Henrion [Thu, 23 May 2013 16:31:53 +0000 (16:31 +0000)]
Fix locking in bufferevent_get_options_().

11 years agoFix a double close() bug in evhttp when the underlying bufferevent uses BEV_OPT_CLOSE...
Maxime Henrion [Thu, 23 May 2013 16:29:17 +0000 (16:29 +0000)]
Fix a double close() bug in evhttp when the underlying bufferevent uses BEV_OPT_CLOSE_ON_FREE.

11 years agoAvoid redundant syscall if making a socket cloexec twice
Nick Mathewson [Mon, 20 May 2013 16:30:40 +0000 (12:30 -0400)]
Avoid redundant syscall if making a socket cloexec twice

I got the idea from Maxime's last patch.

11 years agoAvoid redundant syscall to make a nonblocking socket nonblocking
Maxime Henrion [Mon, 20 May 2013 16:23:53 +0000 (12:23 -0400)]
Avoid redundant syscall to make a nonblocking socket nonblocking

11 years agoIf evsel->del() fails, don't leave the evmap in an inconsistent state.
Maxime Henrion [Thu, 16 May 2013 16:38:39 +0000 (16:38 +0000)]
If evsel->del() fails, don't leave the evmap in an inconsistent state.

 This fixes assertion failures in cases where epoll() fails with EBADF
 -- the root cause for which is as of yet unknown. It seems something
 (OpenSSL?) is closing the file descriptor under our feet.

11 years agoFix dns/leak_resume_send_err test.
Azat Khuzhin [Mon, 13 May 2013 19:50:30 +0000 (19:50 +0000)]
Fix dns/leak_resume_send_err test.

Because we don't cancel request,
and want our callback to recieve DNS_ERR_SHUTDOWN,
we use deferred callback, and there was
- one extra malloc(),
  @see reply_schedule_callback()
- and one missing free
  @see request_finished() (req->handle->pending_cb = 1)
than we don't need to count in testleak_cleanup()

So just decrement allocated_chunks to 2,
like we already take care about it.

11 years agoAdd tests for evdns_base_resume().
Azat Khuzhin [Mon, 13 May 2013 19:20:42 +0000 (19:20 +0000)]
Add tests for evdns_base_resume().

- leak_resume
- leak_cancel_and_resume
- leak_resume_send_err
- leak_cancel_and_resume_send_err

11 years agoFix SEGFAULT after evdns_base_resume if no nameservers installed.
Azat Khuzhin [Fri, 10 May 2013 23:53:11 +0000 (03:53 +0400)]
Fix SEGFAULT after evdns_base_resume if no nameservers installed.

If there is no nameservers installed, using
evdns_base_nameserver_ip_add(), than evdns_base_resume() will SEGFAULT,
because of NULL dereference in evdns_requests_pump_waiting_queue()

11 years agoWhoops. It is gdi.lib, not gdi32.lib. (github issue #61)
Nick Mathewson [Sun, 12 May 2013 02:21:30 +0000 (22:21 -0400)]
Whoops. It is gdi.lib, not gdi32.lib. (github issue #61)

11 years agoMissed lock acquire/release in event_base_cancel_single_callback_()
Azat Khuzhin [Fri, 10 May 2013 16:22:56 +0000 (20:22 +0400)]
Missed lock acquire/release in event_base_cancel_single_callback_()

Call backtrace:
...
event_queue_remove_active()
event_callback_cancel_nolock_()
event_base_cancel_single_callback_()
event_base_free_()
event_base_free()
...

Fix for e9ebef83

11 years agoFix test compilation with nmake: add the gdi.lib dependency
Nick Mathewson [Sat, 11 May 2013 01:38:26 +0000 (21:38 -0400)]
Fix test compilation with nmake: add the gdi.lib dependency

ACK: efekty

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 7 May 2013 14:03:28 +0000 (10:03 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoChecking request nameserver for NULL, before using it.
Belobrov Andrey [Mon, 6 May 2013 14:15:03 +0000 (18:15 +0400)]
Checking request nameserver for NULL, before using it.

11 years agoBump version to 2.1.3-alpha-dev
Nick Mathewson [Thu, 2 May 2013 03:12:08 +0000 (23:12 -0400)]
Bump version to 2.1.3-alpha-dev

11 years agoAdd regress_finalize to makefile.nmake release-2.1.3-alpha
Nick Mathewson [Wed, 1 May 2013 17:37:57 +0000 (13:37 -0400)]
Add regress_finalize to makefile.nmake

11 years agoSet a release date
Nick Mathewson [Wed, 1 May 2013 14:28:42 +0000 (10:28 -0400)]
Set a release date

11 years agoMake http/connection_retry off-by-default
Nick Mathewson [Wed, 1 May 2013 14:04:08 +0000 (10:04 -0400)]
Make http/connection_retry off-by-default

11 years agoFix a windows compilation regression
Nick Mathewson [Wed, 1 May 2013 02:57:25 +0000 (22:57 -0400)]
Fix a windows compilation regression

This is github issue #57; reported by "efekty". I assume the compiler
is MSVC.

11 years agoFix a bug in fixing a bug in out-of-tree test-dumpevents
Nick Mathewson [Wed, 1 May 2013 00:09:52 +0000 (20:09 -0400)]
Fix a bug in fixing a bug in out-of-tree test-dumpevents

11 years agoMake regress_finalize work with malloc replacement disabled
Nick Mathewson [Tue, 30 Apr 2013 18:40:50 +0000 (14:40 -0400)]
Make regress_finalize work with malloc replacement disabled

11 years agoFix some out-of-tree build bugs
Nick Mathewson [Tue, 30 Apr 2013 18:26:47 +0000 (14:26 -0400)]
Fix some out-of-tree build bugs

11 years agoIncremement version to 2.1.3-alpha
Nick Mathewson [Tue, 30 Apr 2013 16:02:49 +0000 (12:02 -0400)]
Incremement version to 2.1.3-alpha

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 30 Apr 2013 16:02:19 +0000 (12:02 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoAdd acknowledgements to readme
Nick Mathewson [Tue, 30 Apr 2013 15:52:55 +0000 (11:52 -0400)]
Add acknowledgements to readme

11 years agoStart editing the changelog for 2.1.3-alpha
Nick Mathewson [Tue, 30 Apr 2013 15:44:39 +0000 (11:44 -0400)]
Start editing the changelog for 2.1.3-alpha

11 years agoMark the finalize stuff as experiemental in case it needs to change
Nick Mathewson [Tue, 30 Apr 2013 14:22:40 +0000 (10:22 -0400)]
Mark the finalize stuff as experiemental in case it needs to change

11 years agoStart a changelog for Libevent 2.0.22-stable
Nick Mathewson [Tue, 30 Apr 2013 15:42:53 +0000 (11:42 -0400)]
Start a changelog for Libevent 2.0.22-stable

11 years agoClarify an important point about event_base_foreach_event()
Nick Mathewson [Fri, 26 Apr 2013 23:15:50 +0000 (19:15 -0400)]
Clarify an important point about event_base_foreach_event()

11 years agoFix a bug in the new main/event_foreach test
Nick Mathewson [Fri, 26 Apr 2013 23:14:05 +0000 (19:14 -0400)]
Fix a bug in the new main/event_foreach test

It wasn't making sure that the events weren't internal.

11 years agoMore unit tests for initializing common timeouts.
Nick Mathewson [Fri, 26 Apr 2013 21:51:33 +0000 (17:51 -0400)]
More unit tests for initializing common timeouts.

Try with: misformed usecs in inputs, and with initializing common timeouts
from other common timeouts.

11 years agoA test for event_get_assignment()
Nick Mathewson [Fri, 26 Apr 2013 21:46:33 +0000 (17:46 -0400)]
A test for event_get_assignment()

11 years agoUnit tests for event_base_gettimeofday_cached() and event_base_update_cache_time()
Nick Mathewson [Fri, 26 Apr 2013 21:28:46 +0000 (17:28 -0400)]
Unit tests for event_base_gettimeofday_cached() and event_base_update_cache_time()

11 years agoNew tests for event_base_foreach_event()
Nick Mathewson [Fri, 26 Apr 2013 17:50:22 +0000 (13:50 -0400)]
New tests for event_base_foreach_event()

Our dump-events code had exercised this a bit, but only via the
nonlocking backend. Also, nothing was checking the "Search for a
specific event" code.

11 years agoNew test for active_later->active transition on event_active
Nick Mathewson [Fri, 26 Apr 2013 17:49:45 +0000 (13:49 -0400)]
New test for active_later->active transition on event_active

When event_active is called, an active_later event is supposed to become
active now.  We had lacked a test for that.

11 years agoMerge branch '21_deadlock_fix_v2'
Nick Mathewson [Fri, 26 Apr 2013 16:27:05 +0000 (12:27 -0400)]
Merge branch '21_deadlock_fix_v2'

11 years agoRemove a no-longer-true XXXX comment.
Nick Mathewson [Fri, 26 Apr 2013 16:00:17 +0000 (12:00 -0400)]
Remove a no-longer-true XXXX comment.

11 years agoMake the event_finalize* functions return an error code
Nick Mathewson [Fri, 26 Apr 2013 15:57:40 +0000 (11:57 -0400)]
Make the event_finalize* functions return an error code

11 years agoMore documentation for finalization feature
Nick Mathewson [Fri, 26 Apr 2013 15:36:43 +0000 (11:36 -0400)]
More documentation for finalization feature

11 years agoRemove bufferevent_del_generic_timeout_cbs as now unused
Nick Mathewson [Wed, 10 Apr 2013 17:44:23 +0000 (13:44 -0400)]
Remove bufferevent_del_generic_timeout_cbs as now unused

11 years agoAlways run pending finalizers when event_base_free() is called
Nick Mathewson [Wed, 10 Apr 2013 01:14:52 +0000 (21:14 -0400)]
Always run pending finalizers when event_base_free() is called

There was actually a bug in the original version of this: it tried to
run the finalizers after (potentially) setting current_base to NULL;
but those finalizers could themselves (potentially) be invoking stuff
that needed to know about the current event_base.  So the right time to
do it is _before_ clearing current_base.

11 years agoUse finalization feature so bufferevents can avoid deadlocks
Nick Mathewson [Tue, 9 Apr 2013 22:16:13 +0000 (18:16 -0400)]
Use finalization feature so bufferevents can avoid deadlocks

Since the bufferevents' events are now EV_FINALIZE (name pending),
they won't deadlock.  To clean up properly, though, we must use the
finalization feature.

This patch also split bufferevent deallocation into an "unlink" step
that happens fast, and a "destruct" step that happens after
finalization.

More work is needed: there needs to be a way to specify a finalizer
for the bufferevent's argument itself.  Also, this finalizer business
makes lots of the reference counting we were doing unnecessary.

Also, more testing is needed.

11 years agoAdd some verbose notes to bufferevent unit tests
Nick Mathewson [Tue, 9 Apr 2013 22:15:08 +0000 (18:15 -0400)]
Add some verbose notes to bufferevent unit tests

11 years agoImplement event_finalize() and related functions to avoid certain deadlocks
Nick Mathewson [Thu, 28 Mar 2013 18:13:19 +0000 (14:13 -0400)]
Implement event_finalize() and related functions to avoid certain deadlocks

11 years agoMake all tests pass under EVENT_DEBUG_MODE=1
Nick Mathewson [Fri, 26 Apr 2013 16:12:08 +0000 (12:12 -0400)]
Make all tests pass under EVENT_DEBUG_MODE=1

The fix was easy: the tests that were failing were those tests that
also enabled debug mode themselves. So, let them know when
EVENT_DEBUG_MODE is on, so they won't do that.

11 years agoMerge branch '21_http_error_cb_squashed'
Nick Mathewson [Thu, 25 Apr 2013 19:13:24 +0000 (15:13 -0400)]
Merge branch '21_http_error_cb_squashed'

11 years agoDrop extra header http_struct.h from regress_http.c
Azat Khuzhin [Thu, 21 Mar 2013 13:01:31 +0000 (17:01 +0400)]
Drop extra header http_struct.h from regress_http.c

11 years agoAdd test for EVREQ_HTTP_REQUEST_CANCEL into http_cancel_test()
Azat Khuzhin [Fri, 22 Mar 2013 10:35:47 +0000 (14:35 +0400)]
Add test for EVREQ_HTTP_REQUEST_CANCEL into http_cancel_test()

11 years agoAdd new error_cb for actual reporting of HTTP request errors.
Azat Khuzhin [Thu, 21 Mar 2013 09:55:40 +0000 (13:55 +0400)]
Add new error_cb for actual reporting of HTTP request errors.

It is useful to know why you callback called with NULL (i.e. it failed),
for example if you set max_body with evhttp_connection_set_max_body_size()
you must know that it failed because of body was longer than this size.

 (Commit message tweaked by Nick)

11 years agoFix another warning introduced in 0c6ec5d8
Nick Mathewson [Thu, 25 Apr 2013 18:48:56 +0000 (14:48 -0400)]
Fix another warning introduced in 0c6ec5d8

11 years agoFix a warning introduced in 0c6ec5d8
Nick Mathewson [Thu, 25 Apr 2013 18:46:46 +0000 (14:46 -0400)]
Fix a warning introduced in 0c6ec5d8

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 25 Apr 2013 17:54:19 +0000 (13:54 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
configure.ac

11 years agoMerge remote-tracking branch 'origin/pr/36' into patches-2.0
Nick Mathewson [Thu, 25 Apr 2013 17:43:49 +0000 (13:43 -0400)]
Merge remote-tracking branch 'origin/pr/36' into patches-2.0