Merge remote-tracking branch 'origin/patches-2.0'

This commit is contained in:
Nick Mathewson 2013-09-09 12:06:53 -04:00
commit b04d13cd72

4
http.c
View File

@ -364,8 +364,6 @@ evhttp_write_buffer(struct evhttp_connection *evcon,
evcon->cb = cb; evcon->cb = cb;
evcon->cb_arg = arg; evcon->cb_arg = arg;
bufferevent_enable(evcon->bufev, EV_WRITE);
/* Disable the read callback: we don't actually care about data; /* Disable the read callback: we don't actually care about data;
* we only care about close detection. (We don't disable reading, * we only care about close detection. (We don't disable reading,
* since we *do* want to learn about any close events.) */ * since we *do* want to learn about any close events.) */
@ -374,6 +372,8 @@ evhttp_write_buffer(struct evhttp_connection *evcon,
evhttp_write_cb, evhttp_write_cb,
evhttp_error_cb, evhttp_error_cb,
evcon); evcon);
bufferevent_enable(evcon->bufev, EV_WRITE);
} }
static void static void