Skip to content

Commit

Permalink
Use fewer _compat.h headers in our own code.
Browse files Browse the repository at this point in the history
svn:r1268
  • Loading branch information
nmathewson committed May 2, 2009
1 parent d5ca076 commit 5a3eddf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion buffer_iocp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
*/

#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/util.h"
#include "event2/thread.h"
#include "event-config.h"
Expand Down
1 change: 0 additions & 1 deletion bufferevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include "event2/util.h"
#include "event2/bufferevent.h"
#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/bufferevent_struct.h"
#include "event2/bufferevent_compat.h"
#include "event2/event.h"
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
#include "event2/util.h"
#include "event2/bufferevent.h"
#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/bufferevent_struct.h"
#include "event2/bufferevent_compat.h"
#include "event2/event.h"
#include "log-internal.h"
#include "mm-internal.h"
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
#include "event2/util.h"
#include "event2/bufferevent.h"
#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/bufferevent_struct.h"
#include "event2/bufferevent_compat.h"
#include "event2/event.h"
#include "log-internal.h"
#include "mm-internal.h"
Expand Down
1 change: 0 additions & 1 deletion bufferevent_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include "event2/util.h"
#include "event2/bufferevent.h"
#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/bufferevent_struct.h"
#include "event2/bufferevent_compat.h"
#include "event2/event.h"
Expand Down
9 changes: 6 additions & 3 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1193,9 +1193,12 @@ evhttp_connection_cb(struct bufferevent *bufev, void *arg)
if (evcon->timeout == -1)
bufferevent_settimeout(evcon->bufev,
HTTP_READ_TIMEOUT, HTTP_WRITE_TIMEOUT);
else
bufferevent_settimeout(evcon->bufev,
evcon->timeout, evcon->timeout);
else {
struct timeval tv;
tv.tv_sec = evcon->timeout;
tv.tv_usec = 0;
bufferevent_set_timeouts(evcon->bufev, &tv, &tv);
}

/* try to start requests that have queued up on this connection */
evhttp_request_dispatch(evcon);
Expand Down

0 comments on commit 5a3eddf

Please sign in to comment.