/* AcceptEx on the completion context. The completion context will be signaled
* when a connection is accepted. */
if (!AcceptEx(nsd, context->accept_socket,
- context->recv_buf, context->recv_buf_size,
+ context->recv_buf,
+ 0, //context->recv_buf_size,
PADDED_ADDR_SIZE, PADDED_ADDR_SIZE,
&BytesRead,
(LPOVERLAPPED) context)) {
ap_get_os_sock(&nsd, context->lr->sd);
if (!AcceptEx(nsd, context->accept_socket,
- context->recv_buf, context->recv_buf_size,
+ context->recv_buf,
+ 0, //context->recv_buf_size,
PADDED_ADDR_SIZE, PADDED_ADDR_SIZE,
&BytesRead, (LPOVERLAPPED) context)) {
lasterror = WSAGetLastError();
LPOVERLAPPED pol;
DWORD CompKey;
DWORD BytesRead;
- int lastError;
if (context != NULL) {
/* If child shutdown has been signaled, clean-up the completion context */
&pol,
INFINITE);
if (!rc) {
- ap_log_error(APLOG_MARK,APLOG_ERR, lastError, server_conf,
+ ap_log_error(APLOG_MARK,APLOG_ERR, GetLastError(), server_conf,
"Child: %d - GetQueuedCompletionStatus() failed", my_pid);
continue;
}
/* Received a connection */
context->conn_io->incnt = BytesRead;
GetAcceptExSockaddrs(context->recv_buf,
- context->recv_buf_size,
+ 0, //context->recv_buf_size,
PADDED_ADDR_SIZE,
PADDED_ADDR_SIZE,
&context->sa_server,