of the heap. The extra malloc/free is a significant performance
hit on some platforms and repeatedly alloc/freeing small chunks of storage
can fragment the heap.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85770
13f79535-47bb-0310-9956-
ffa450edef68
return;
}
- iol = ap_iol_attach_socket(sock);
+ iol = ap_iol_attach_socket(p, sock);
if (iol == NULL) {
ap_log_error(APLOG_MARK, APLOG_WARNING, errno, NULL,
"error attaching to socket");
}
sock_disable_nagle(csd);
- iol = ap_iol_attach_socket(sock);
+ iol = ap_iol_attach_socket(p, 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 = ap_iol_attach_socket(sock);
+ iol = ap_iol_attach_socket(p, sock);
if (iol == NULL) {
if (errno == EBADF) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, errno, NULL,
sock_disable_nagle(csd);
- iol = ap_iol_attach_socket(sock);
+ iol = ap_iol_attach_socket(p, sock);
(void) ap_update_child_status(my_child_num, my_thread_num,
SERVER_BUSY_READ, (request_rec *) NULL);
sock_disable_nagle(sockdes);
- iol = ap_iol_attach_socket(csd);
+ iol = ap_iol_attach_socket(ptrans, csd);
(void) ap_update_child_status(my_child_num, SERVER_BUSY_READ,
(request_rec *) NULL);
sock_disable_nagle(csd);
- iol = ap_iol_attach_socket(csd);
+ iol = ap_iol_attach_socket(ptrans, 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 = ap_iol_attach_socket(context->sock);
+ iol = ap_iol_attach_socket(context->ptrans, context->sock);
if (iol == NULL) {
ap_log_error(APLOG_MARK, APLOG_ERR, APR_ENOMEM, server_conf,
"worker_main: attach_socket() failed. Continuing...");