#include "apr_hash.h"
#include "apr_thread_proc.h" /* for RLIMIT stuff */
#include "apr_hooks.h"
-#include "apr_support.h"
#define APR_WANT_IOVEC
#define APR_WANT_STRFUNC
rv = send_brigade_nonblocking(s, bb, bytes_written, c);
if (rv != APR_SUCCESS) {
if (APR_STATUS_IS_EAGAIN(rv)) {
- rv = apr_wait_for_io_or_timeout(NULL, s, 0);
+ /* Wait until we can send more data */
+ apr_int32_t nsds;
+ apr_interval_time_t timeout;
+ apr_pollfd_t pollset;
+
+ pollset.p = c->pool;
+ pollset.desc_type = APR_POLL_SOCKET;
+ pollset.reqevents = APR_POLLOUT;
+ pollset.desc.s = s;
+ apr_socket_timeout_get(s, &timeout);
+ rv = apr_poll(&pollset, 1, &nsds, timeout);
if (rv != APR_SUCCESS) {
break;
}