Lines Matching refs:m_fd

173 { .m_fdListen = -1, .m_fd = -1 };
423 if (pReq->m_fd == -1) in lsapi_close_connection()
425 lsapi_close(pReq->m_fd); in lsapi_close_connection()
426 pReq->m_fd = -1; in lsapi_close_connection()
1388 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf, pReq->m_reqBufSize ); in readReq()
1414 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1437 return notify_req_received( pReq->m_fd ); in readReq()
1519 pReq->m_fd = fd; in LSAPI_InitRequest()
1524 pReq->m_fd = -1; in LSAPI_InitRequest()
1556 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1561 pReq->m_fd = accept( pReq->m_fdListen, in LSAPI_Accept_r()
1563 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1577 lsapi_set_nblock( pReq->m_fd , 0 ); in LSAPI_Accept_r()
1580 setsockopt(pReq->m_fd, IPPROTO_TCP, TCP_NODELAY, in LSAPI_Accept_r()
1586 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Accept_r()
1617 if ( pReq->m_fd != -1 ) in LSAPI_Finish_r()
1648 if ( pReq->m_fd != -1 ) in LSAPI_End_Response_r()
1733 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, len ); in readBodyToReqBuf()
1742 if (!pReq || (pReq->m_fd ==-1) ) in LSAPI_ReqBodyGetChar_r()
1762 if (!pReq || pReq->m_fd == -1 || !pBuf || !getLF) in LSAPI_ReqBodyGetLine_r()
1806 if (!pReq || pReq->m_fd == -1 || !pBuf || (ssize_t)bufLen < 0) in LSAPI_ReadReqBody_r()
1830 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1864 if (pReq->m_fd == -1) in LSAPI_Write_r()
2014 if ( !pReq || (pReq->m_fd == -1) || fdIn == -1 ) in LSAPI_sendfile_r()
2028 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
2031 return gsendfile( pReq->m_fd, fdIn, off, size ); in LSAPI_sendfile_r()
2068 if ( pReq->m_fd == -1 ) in LSAPI_Flush_r()
2088 ret = lsapi_writev( pReq->m_fd, &pReq->m_pIovecToWrite, in LSAPI_Flush_r()
2115 if (s_stderr_log_path || pReq->m_fd == -1 || pReq->m_fd == pReq->m_fdListen) in LSAPI_Write_Stderr_r()
2143 ret = lsapi_writev( pReq->m_fd, &pIov, in LSAPI_Write_Stderr_r()
2726 int m_fd; member
2789 g_prefork_server->m_fd = fd; in LSAPI_Set_Server_fd()
3187 FD_SET( pServer->m_fd, &readfds ); in lsapi_prefork_server_accept()
3190 ret = (*g_fnSelect)(pServer->m_fd+1, &readfds, NULL, NULL, &timeout); in lsapi_prefork_server_accept()
3229 pReq->m_fd = lsapi_accept( pServer->m_fd ); in lsapi_prefork_server_accept()
3230 if ( pReq->m_fd != -1 ) in lsapi_prefork_server_accept()
3264 lsapi_set_nblock( pReq->m_fd, 0 ); in lsapi_prefork_server_accept()
3282 lsapi_notify_pid( pReq->m_fd ); in lsapi_prefork_server_accept()
3302 close( pReq->m_fd ); in lsapi_prefork_server_accept()
3303 pReq->m_fd = -1; in lsapi_prefork_server_accept()
3349 lsapi_set_nblock( pReq->m_fd, 0 ); in LSAPI_Postfork_Child()
3362 lsapi_notify_pid(pReq->m_fd); in LSAPI_Postfork_Child()
3379 close(pReq->m_fd); in LSAPI_Postfork_Parent()
3380 pReq->m_fd = -1; in LSAPI_Postfork_Parent()
3457 FD_SET(pServer->m_fd, &readfds); in LSAPI_Accept_Before_Fork()
3460 ret = (*g_fnSelect)(pServer->m_fd+1, &readfds, NULL, NULL, &timeout); in LSAPI_Accept_Before_Fork()
3500 pReq->m_fd = lsapi_accept(pServer->m_fd); in LSAPI_Accept_Before_Fork()
3501 if (pReq->m_fd != -1) in LSAPI_Accept_Before_Fork()
3551 if ( g_prefork_server->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3560 send_conn_close_notification(pReq->m_fd); in LSAPI_Prefork_Accept_r()
3576 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3578 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3645 pReq->m_fd = lsapi_accept( pReq->m_fdListen ); in LSAPI_Prefork_Accept_r()
3646 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3654 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3664 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Prefork_Accept_r()