*/
#include "event2/buffer.h"
-#include "event2/buffer_compat.h"
#include "event2/util.h"
#include "event2/thread.h"
#include "event-config.h"
#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 "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"
#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"
#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"
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);