#include "apr_strings.h"
#include "apr_hash.h"
#include "apr_lib.h"
+#include "apr_poll.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
#if APR_FILES_AS_SOCKETS
int num_events;
- rv = apr_poll(ctx->pollset,
- &num_events,
- f->r->server->timeout);
+ rv = apr_poll(ctx->pollset, 2,
+ &num_events, f->r->server->timeout);
if (rv || dc->debug >= DBGLVL_GORY) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG,
rv, f->r, "apr_poll()");
#define CORE_PRIVATE
#include "mod_proxy.h"
+#include "apr_poll.h"
module AP_MODULE_DECLARE_DATA proxy_connect_module;
while (1) { /* Infinite loop until error (one side closes the connection) */
/* ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "proxy: CONNECT: going to sleep (poll)");*/
- if ((rv = apr_poll(pollfd, &pollcnt, -1)) != APR_SUCCESS)
+ if ((rv = apr_poll(pollfd, 2, &pollcnt, -1)) != APR_SUCCESS)
{
apr_socket_close(sock);
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "proxy: CONNECT: error apr_poll()");
#include "mpm.h"
#include "mpm_default.h"
#include "apr_thread_mutex.h"
+#include "apr_poll.h"
extern int _kset_fd_limit_(int num);
apr_int16_t event;
apr_status_t ret;
- ret = apr_poll(pollset, &srv, -1);
+ ret = apr_poll(pollset, num_listening_sockets, &srv, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {
#include "ap_listen.h"
#include "scoreboard.h"
#include "mpm_default.h"
+#include "apr_poll.h"
#include <signal.h>
#include <limits.h> /* for INT_MAX */
apr_status_t ret;
apr_int16_t event;
- ret = apr_poll(pollset, &n, -1);
+ ret = apr_poll(pollset, num_listensocks, &n, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {
continue;
#include "mpm.h"
#include "scoreboard.h"
#include "util_filter.h"
+#include "apr_poll.h"
/* ### should be APR-ized */
#include <poll.h>
while (!workers_may_exit) {
apr_int16_t event;
- srv = apr_poll(pollset, &n, -1);
+ srv = apr_poll(pollset, num_listensocks, &n, -1);
if (srv != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(srv)) {
#include "apr_file_io.h"
#include "apr_thread_proc.h"
#include "apr_signal.h"
+#include "apr_poll.h"
#include "apr_thread_mutex.h"
#include "apr_thread_cond.h"
#include "apr_proc_mutex.h"
apr_status_t ret;
apr_int16_t event;
- ret = apr_poll(pollset, &n, -1);
+ ret = apr_poll(pollset, num_listensocks, &n, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {
continue;
#include "ap_mpm.h"
#include "ap_listen.h"
#include "apr_portable.h"
+#include "apr_poll.h"
#include "mpm_common.h"
#include "apr_strings.h"
#include <os2.h>
rv = APR_FROM_OS_ERROR(rc);
if (rv == APR_SUCCESS) {
- rv = apr_poll(pollset, &nsds, -1);
+ rv = apr_poll(pollset, num_listeners, &nsds, -1);
DosReleaseMutexSem(ap_mpm_accept_mutex);
}
#include "mpm_common.h"
#include "ap_listen.h"
#include "ap_mmn.h"
+#include "apr_poll.h"
#ifdef HAVE_BSTRING_H
#include <bstring.h> /* for IRIX, FD_SET calls bzero() */
apr_int16_t event;
apr_int32_t n;
- ret = apr_poll(pollset, &n, -1);
+ ret = apr_poll(pollset, num_listensocks, &n, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {
continue;
#include "apr_signal.h"
#include "apr_thread_mutex.h"
#include "apr_proc_mutex.h"
+#include "apr_poll.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
apr_status_t ret;
apr_int16_t event;
- ret = apr_poll(pollset, &n, -1);
+ ret = apr_poll(pollset, num_listensocks, &n, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {
continue;
#include "apr_lib.h"
#include "apr_portable.h"
#include "ap_release.h"
+#include "apr_poll.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
status = APR_SUCCESS;
else
#endif
- status = apr_poll(readbits, &n, aprtimeout);
+ status = apr_poll(readbits, concurrency, &n, aprtimeout);
if (status != APR_SUCCESS)
apr_err("apr_poll", status);
static void copyright(void)
{
if (!use_html) {
- printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.108 $> apache-2.0");
+ printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.109 $> apache-2.0");
printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n");
printf("\n");
}
else {
printf("<p>\n");
- printf(" This is ApacheBench, Version %s <i><%s></i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.108 $");
+ printf(" This is ApacheBench, Version %s <i><%s></i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.109 $");
printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n");
printf("</p>\n<p>\n");