mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
cgi, fsp, smb: set_nonblocking_fd
This commit is contained in:
parent
73138dad3d
commit
71adb0e6cc
@ -385,6 +385,8 @@ execute_cgi(struct connection *conn)
|
|||||||
/* Use data socket for passing the pipe. It will be cleaned up in
|
/* Use data socket for passing the pipe. It will be cleaned up in
|
||||||
* close_pipe_and_read(). */
|
* close_pipe_and_read(). */
|
||||||
conn->data_socket->fd = pipe_read[1];
|
conn->data_socket->fd = pipe_read[1];
|
||||||
|
set_nonblocking_fd(conn->socket->fd);
|
||||||
|
set_nonblocking_fd(conn->data_socket->fd);
|
||||||
|
|
||||||
send_request(conn);
|
send_request(conn);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -394,6 +394,8 @@ fsp_protocol_handler(struct connection *conn)
|
|||||||
|
|
||||||
conn->data_socket->fd = fsp_pipe[0];
|
conn->data_socket->fd = fsp_pipe[0];
|
||||||
conn->socket->fd = header_pipe[0];
|
conn->socket->fd = header_pipe[0];
|
||||||
|
set_nonblocking_fd(conn->data_socket->fd);
|
||||||
|
set_nonblocking_fd(conn->socket->fd);
|
||||||
close(fsp_pipe[1]);
|
close(fsp_pipe[1]);
|
||||||
close(header_pipe[1]);
|
close(header_pipe[1]);
|
||||||
buf2 = alloc_read_buffer(conn->socket);
|
buf2 = alloc_read_buffer(conn->socket);
|
||||||
|
@ -461,6 +461,8 @@ smb_protocol_handler(struct connection *conn)
|
|||||||
|
|
||||||
conn->data_socket->fd = smb_pipe[0];
|
conn->data_socket->fd = smb_pipe[0];
|
||||||
conn->socket->fd = header_pipe[0];
|
conn->socket->fd = header_pipe[0];
|
||||||
|
set_nonblocking_fd(conn->data_socket->fd);
|
||||||
|
set_nonblocking_fd(conn->socket->fd);
|
||||||
close(smb_pipe[1]);
|
close(smb_pipe[1]);
|
||||||
close(header_pipe[1]);
|
close(header_pipe[1]);
|
||||||
buf2 = alloc_read_buffer(conn->socket);
|
buf2 = alloc_read_buffer(conn->socket);
|
||||||
|
Loading…
Reference in New Issue
Block a user