own iol_sockets using APR. This just combines all of that code to a
common file and moves that file to main. I have tested this with all of
the Unix MPM's, but I am willing to bet I missed something (Makefiles) for
Windows, and possibly moving some code for OS/2 and BeOS.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85732
13f79535-47bb-0310-9956-
ffa450edef68
ap_put_os_sock(&tempsock, &sd, pcgi);
- iol = unix_attach_socket(tempsock);
+ iol = ap_iol_attach_socket(tempsock);
ap_bpush_iol(script, iol);
}
sock_buff = ap_bcreate(r->pool, B_RDWR);
- ap_bpush_iol(sock_buff, unix_attach_socket(sock));
+ ap_bpush_iol(sock_buff, ap_iol_attach_socket(sock));
if(ap_setup_poll(&pollfd, 2, r->pool) != APR_SUCCESS)
{
}
f = ap_bcreate(p, B_RDWR);
- ap_bpush_iol(f, unix_attach_socket(sock));
+ ap_bpush_iol(f, ap_iol_attach_socket(sock));
/* shouldn't we implement telnet control options here? */
#ifdef CHARSET_EBCDIC
}
}
data = ap_bcreate(p, B_RDWR);
- ap_bpush_iol(f, unix_attach_socket(csd));
+ ap_bpush_iol(f, ap_iol_attach_socket(csd));
}
else {
data = ap_bcreate(p, B_RDWR);
- ap_bpush_iol(data, unix_attach_socket(dsock));
+ ap_bpush_iol(data, ap_iol_attach_socket(dsock));
}
/* send response */
clear_connection(r->pool, r->headers_in); /* Strip connection-based headers */
f = ap_bcreate(p, B_RDWR);
- ap_bpush_iol(f, unix_attach_socket(sock));
+ ap_bpush_iol(f, ap_iol_attach_socket(sock));
ap_bvputs(f, r->method, " ", proxyhost ? url : urlptr, " HTTP/1.0" CRLF,
NULL);
LTLIBRARY_NAME = libos.la
-LTLIBRARY_SOURCES = os-inline.c unixd.c iol_socket.c
+LTLIBRARY_SOURCES = os-inline.c unixd.c
include $(top_srcdir)/build/ltlib.mk
buff.c http_config.c http_core.c http_log.c http_main.c \
http_protocol.c http_request.c http_vhost.c util.c util_date.c \
util_script.c util_uri.c util_md5.c util_cfgtree.c util_ebcdic.c \
- rfc1413.c http_connection.c iol_file.c listen.c mpm_common.c \
- util_charset.c util_debug.c
+ rfc1413.c http_connection.c iol_file.c iol_socket.c listen.c \
+ mpm_common.c util_charset.c util_debug.c
include $(top_srcdir)/build/ltlib.mk
return;
}
- iol = beos_attach_socket(sock);
+ iol = ap_iol_attach_socket(sock);
if (iol == NULL) {
ap_log_error(APLOG_MARK, APLOG_WARNING, errno, NULL,
"error attaching to socket");
}
sock_disable_nagle(csd);
- iol = unix_attach_socket(sock);
+ iol = ap_iol_attach_socket(sock);
conn_io = ap_bcreate(p, B_RDWR);
ap_bpush_iol(conn_io, iol);
long conn_id = my_child_num * HARD_THREAD_LIMIT + my_thread_num;
int csd;
- iol = beos_attach_socket(sock);
+ iol = ap_iol_attach_socket(sock);
if (iol == NULL) {
if (errno == EBADF) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, errno, NULL,
sock_disable_nagle(csd);
- iol = unix_attach_socket(sock);
+ iol = ap_iol_attach_socket(sock);
(void) ap_update_child_status(my_child_num, my_thread_num,
SERVER_BUSY_READ, (request_rec *) NULL);
sock_disable_nagle(sockdes);
- iol = unix_attach_socket(csd);
+ iol = ap_iol_attach_socket(csd);
(void) ap_update_child_status(my_child_num, SERVER_BUSY_READ,
(request_rec *) NULL);
sock_disable_nagle(csd);
- iol = os2_attach_socket(csd);
+ iol = ap_iol_attach_socket(csd);
if (iol == NULL) {
ap_log_error(APLOG_MARK, APLOG_WARNING|APLOG_NOERRNO, 0, NULL,
sock_disable_nagle(context->accept_socket);
ap_put_os_sock(&context->sock, &context->accept_socket, context->ptrans);
- iol = win32_attach_socket(context->ptrans, context->sock);
+ iol = ap_iol_attach_socket(context->sock);
if (iol == NULL) {
ap_log_error(APLOG_MARK, APLOG_ERR, APR_ENOMEM, server_conf,
"worker_main: attach_socket() failed. Continuing...");