Nick Mathewson
0cb70e3333
Merge remote-tracking branch 'origin/patches-2.0'
2011-10-26 10:17:21 -04:00
Nick Mathewson
3c824bd334
Update copyright dates to 2011.
2011-10-24 13:18:09 -04:00
Nick Mathewson
b260065ab6
Merge remote-tracking branch 'origin/patches-2.0'
2011-08-28 14:06:03 -04:00
Nick Mathewson
6056d6e0df
Cleanup on 7c11e51e1ab: restore c90 declaration compliance
2011-08-28 14:02:40 -04:00
Harlan Stenn
7c11e51e1a
Clean up some problems identified by Coverity.
2011-08-28 13:44:33 -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
4ab2a89dc7
Merge remote branch 'origin/patches-2.0'
2011-03-12 12:12:35 -05:00
Christophe Fillot
4b8f02f147
Fix incorrect assertions and possible use-after-free in evrpc_free()
...
Original description:
The following patch fixes incorrect assertions in evrpc_free():
evrpc_unregister_rpc() and evrpc_remove_hook() return 0 for success.
Also, in evrpc_unregister_rpc(), it is better to free RPC structure
at the end: evrpc_free() uses rpc->uri as "name" parameter when
calling evrpc_unregister_rpc(), then rpc->uri is freed, but we have
"registered_uri = evrpc_construct_uri(name)". So at this time "name"
is invalid.
2011-03-12 12:08:19 -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
Kevin Bowling
0915ca0aa6
Include evconfig-private.h in internal files for great good.
2011-01-02 08:43:45 -07:00
Nick Mathewson
545a61145c
Fix even more win64 warnings: buffer, event_tagging, http, evdns, evrpc
2010-11-01 14:13:33 -04:00
Nick Mathewson
743f866539
Honor NDEBUG; build without warnings with NDEBUG; make NDEBUG always-off in unit test code
2010-08-23 11:49:06 -04:00
Nick Mathewson
ec347b9225
Move event-config.h to include/event2
...
This change means that all required include files are in event2, and
all files not in event2/* are optional.
2010-08-06 20:21:27 -04:00
Nick Mathewson
39906698ca
Let evhttp_send_error infer the right error reasons
2010-05-26 13:43:01 -04:00
Nick Mathewson
94ee1251cb
fix a leak when unpausing evrpc requests
2010-04-23 23:55:03 -04:00
Shuo Chen
755fbf16c3
Add void* arguments to request_new and reply_new evrpc hooks
...
This makes evprc setup more extensible, and helps with Shuo Chen's
work on implementing Google protocol buffers rpc on top of Libevent 2
evrpc.
This patch breaks binary compatibility with previous versions of
Libevent, since it changes struct evrpc and the signature of
evrpc_register_generic(). Since all compliant code should be calling
evrpc_register_generic via EVRPC_REGISTER, it shouldn't break source
compatibility.
(Code by Shuo Chen; commit message by Nick)
2010-04-14 14:27:29 -04:00
Shuo Chen
07edf784fa
Expose the request and reply members of rpc_req_generic()
...
This code adds two accessor functions to evprc, and helps integrate
evrpc with Google protocol buffers.
(Code by Shuo Chen; commit message by nickm)
2010-04-14 14:23:03 -04:00
Nick Mathewson
17efc1cdfa
Update all our copyright notices to say "2010"
2010-03-04 01:38:48 -05:00
Nick Mathewson
e5bbd40ad7
Clean up formatting: use tabs, not 8-spaces, to indent.
2010-02-18 17:44:09 -05:00
Nick Mathewson
70a4a3ef14
Remove a needless include of rpc_compat.h
...
Nothing in evrpc.c was using rpc_compat.h, so it's best to take it
out, especially since it polluted our build process with GCC variadic
macros.
While we're at it, this patch puts an extra restriction on when the
variadic macros in rpc_compat.h are defined. Not only must GCC be the
compiler, but GCC must not be running in -ansi mode.
2010-01-23 23:12:29 -05:00
Nick Mathewson
784b8773a4
We do not work any more without an event-config.h; stop pretending that it is meaningful to check for HAVE_CONFIG_H
...
svn:r1516
2009-11-06 21:46:57 +00:00
Nick Mathewson
2e36dbe1a6
Use EVUTIL_ASSERT() consistently instead of assert.
...
svn:r1464
2009-10-26 20:00:43 +00:00
Nick Mathewson
e3fd294a6d
Spelling fixes in comments and strings.
...
svn:r1445
2009-10-16 13:19:57 +00:00
Nick Mathewson
5d71b25b51
Remove all trailing whitespace from end-of-line.
...
svn:r1350
2009-07-17 18:38:38 +00:00
Nick Mathewson
00ecd1d8e4
Make evrpc use event2/rpc*.h, not evrpc.h
...
svn:r1266
2009-05-02 16:23:08 +00:00
Niels Provos
a146af1db8
move more code directly into evrpc.c; provide backwards compatible vararg macros
...
svn:r1244
2009-04-25 00:15:55 +00:00
Nick Mathewson
a8f6d961eb
Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h
...
svn:r1183
2009-04-17 06:56:09 +00:00
Nick Mathewson
cd731b77d7
Do not use ctypes functions in cases when we need the "net" locale.
...
This patch adds a new set of EVUTIL_IS* functions to replace use of
the ctypes is* functions in all cases where we care about characters'
interpretations in net ascii rather than in the locale. For example,
when we're working with DNS hostnames, we don't want to do the 0x20
hack on non-ascii characters, even if the host thinks they should be
isalpha.
svn:r1114
2009-02-10 21:40:12 +00:00
Nick Mathewson
7dd362b158
Have util-internal.h define socklen_t if we need it, and include it appropriately. This fixes win32 compilation.
...
svn:r1070
2009-01-29 15:09:24 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
8889a77039
Replace all use of config.h with event-config.h.
...
svn:r1064
2009-01-27 22:30:46 +00:00
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Nick Mathewson
169321c9e6
Rename four internal headers to follow the -internal.h convention.
...
svn:r1000
2009-01-13 20:26:37 +00:00
Niels Provos
8c59416878
memory leak: forgot to free paused rpcs in server
...
svn:r962
2008-12-19 21:03:42 +00:00
Nick Mathewson
2baaac7fdb
Forward-port: 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:r852
2008-06-14 17:50:36 +00:00
Niels Provos
aa4b92574b
move some structure definitions from evrpc.h to evrpc-internal.h
...
svn:r817
2008-05-13 05:05:30 +00:00
Nick Mathewson
7868ab5a43
r19667@catbus: nickm | 2008-05-08 23:49:26 -0400
...
fwd-port: Always include winsock2.h before windows.h. Apparently some SDKs need this.
svn:r803
2008-05-09 04:00:17 +00:00
Nick Mathewson
7defe4cbc1
r15549@tombo: nickm | 2008-05-08 11:53:11 -0400
...
Make new http headers include minimal parts of event2/ tree; make old evhttp.h incldue event.h, since the old one did too.
svn:r798
2008-05-08 15:55:09 +00:00
Nick Mathewson
3d60bccc8e
r19656@catbus: nickm | 2008-05-08 10:25:08 -0400
...
forward-port: Remove #include "misc.h"s.
svn:r795
2008-05-08 14:25:44 +00:00
Niels Provos
de1c43926b
migrate evhttp to event2; accessors are still missing
...
svn:r790
2008-05-08 06:15:04 +00:00
Niels Provos
a83caa6b29
remove too agressive assert
...
svn:r765
2008-05-04 03:52:24 +00:00
Nick Mathewson
5fbc7f0aee
r15439@tombo: nickm | 2008-05-02 12:28:08 -0400
...
use event_assign internall; switch uses of event_set to use event_assign instead.
svn:r755
2008-05-02 16:28:25 +00:00
Niels Provos
e8f450f232
expose a way to create the rpc context manually
...
svn:r754
2008-05-01 02:08:26 +00:00
Niels Provos
85c4904bc5
allow connections to be removed from an rpc pool
...
svn:r753
2008-05-01 01:45:00 +00:00
Nick Mathewson
49868b618a
r15316@tombo: nickm | 2008-04-24 20:58:36 -0400
...
Rename internal memory management functions from event_malloc() etc to mm_malloc() etc.
svn:r725
2008-04-25 01:18:08 +00:00
Nick Mathewson
ae09ac4ae0
r15220@tombo: nickm | 2008-04-17 15:16:02 -0400
...
Use new includes in more files still
svn:r717
2008-04-17 19:18:40 +00:00
Niels Provos
8920ac4ddf
make RPC replies use application/octet-stream
...
svn:r694
2008-03-30 21:06:33 +00:00
Niels Provos
992bc85b96
dereference the right field and associate the right connection
...
svn:r624
2007-12-31 20:42:21 +00:00
Niels Provos
2460aa5939
allow hooks to get access to the connection object
...
svn:r623
2007-12-31 19:33:30 +00:00
Niels Provos
5a5609c753
allow association of meta data with RPC requests for hook processing
...
svn:r622
2007-12-29 22:45:54 +00:00