Lines Matching refs:m_fd
174 { .m_fdListen = -1, .m_fd = -1 };
440 if (pReq->m_fd == -1) in lsapi_close_connection()
442 lsapi_close(pReq->m_fd); in lsapi_close_connection()
443 pReq->m_fd = -1; in lsapi_close_connection()
1377 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf, pReq->m_reqBufSize ); in readReq()
1403 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1426 return notify_req_received( pReq->m_fd ); in readReq()
1508 pReq->m_fd = fd; in LSAPI_InitRequest()
1513 pReq->m_fd = -1; in LSAPI_InitRequest()
1545 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1550 pReq->m_fd = accept( pReq->m_fdListen, in LSAPI_Accept_r()
1552 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1566 lsapi_set_nblock( pReq->m_fd , 0 ); in LSAPI_Accept_r()
1569 setsockopt(pReq->m_fd, IPPROTO_TCP, TCP_NODELAY, in LSAPI_Accept_r()
1575 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Accept_r()
1606 if ( pReq->m_fd != -1 ) in LSAPI_Finish_r()
1637 if ( pReq->m_fd != -1 ) in LSAPI_End_Response_r()
1722 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, len ); in readBodyToReqBuf()
1731 if (!pReq || (pReq->m_fd ==-1) ) in LSAPI_ReqBodyGetChar_r()
1751 if (!pReq || pReq->m_fd == -1 || !pBuf || !getLF) in LSAPI_ReqBodyGetLine_r()
1795 if (!pReq || pReq->m_fd == -1 || !pBuf || (ssize_t)bufLen < 0) in LSAPI_ReadReqBody_r()
1819 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1853 if (pReq->m_fd == -1) in LSAPI_Write_r()
2037 if ( !pReq || (pReq->m_fd == -1) || fdIn == -1 ) in LSAPI_sendfile_r()
2051 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
2054 return gsendfile( pReq->m_fd, fdIn, off, size ); in LSAPI_sendfile_r()
2091 if ( pReq->m_fd == -1 ) in LSAPI_Flush_r()
2111 ret = lsapi_writev( pReq->m_fd, &pReq->m_pIovecToWrite, in LSAPI_Flush_r()
2138 if (s_stderr_log_path || pReq->m_fd == -1 || pReq->m_fd == pReq->m_fdListen) in LSAPI_Write_Stderr_r()
2166 ret = lsapi_writev( pReq->m_fd, &pIov, in LSAPI_Write_Stderr_r()
2753 int m_fd; member
2816 g_prefork_server->m_fd = fd; in LSAPI_Set_Server_fd()
3222 FD_SET( pServer->m_fd, &readfds ); in lsapi_prefork_server_accept()
3225 ret = (*g_fnSelect)(pServer->m_fd+1, &readfds, NULL, NULL, &timeout); in lsapi_prefork_server_accept()
3265 pReq->m_fd = lsapi_accept( pServer->m_fd ); in lsapi_prefork_server_accept()
3266 if ( pReq->m_fd != -1 ) in lsapi_prefork_server_accept()
3300 lsapi_set_nblock( pReq->m_fd, 0 ); in lsapi_prefork_server_accept()
3318 lsapi_notify_pid( pReq->m_fd ); in lsapi_prefork_server_accept()
3340 close( pReq->m_fd ); in lsapi_prefork_server_accept()
3341 pReq->m_fd = -1; in lsapi_prefork_server_accept()
3387 lsapi_set_nblock( pReq->m_fd, 0 ); in LSAPI_Postfork_Child()
3400 lsapi_notify_pid(pReq->m_fd); in LSAPI_Postfork_Child()
3417 close(pReq->m_fd); in LSAPI_Postfork_Parent()
3418 pReq->m_fd = -1; in LSAPI_Postfork_Parent()
3495 FD_SET(pServer->m_fd, &readfds); in LSAPI_Accept_Before_Fork()
3498 ret = (*g_fnSelect)(pServer->m_fd+1, &readfds, NULL, NULL, &timeout); in LSAPI_Accept_Before_Fork()
3538 pReq->m_fd = lsapi_accept(pServer->m_fd); in LSAPI_Accept_Before_Fork()
3539 if (pReq->m_fd != -1) in LSAPI_Accept_Before_Fork()
3582 if ( g_prefork_server->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3591 send_conn_close_notification(pReq->m_fd); in LSAPI_Prefork_Accept_r()
3607 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3609 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3688 pReq->m_fd = lsapi_accept( pReq->m_fdListen ); in LSAPI_Prefork_Accept_r()
3689 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3698 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3708 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Prefork_Accept_r()