mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-01 18:57:48 +00:00
nDPIsrvd.(h|py): Added socket read/recv timeout.
* nDPIsrvd.h: support for O_NONBLOCK nDPIsrvd_socket Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
@@ -626,6 +626,7 @@ static void * distributor_client_mainloop_thread(void * const arg)
|
||||
case READ_ERROR:
|
||||
logger(1, "Read and verify fd returned an error: %s", strerror(errno));
|
||||
THREAD_ERROR_GOTO(trv);
|
||||
case READ_TIMEOUT:
|
||||
case READ_PEER_DISCONNECT:
|
||||
del_event(dis_epollfd, mock_testfds[PIPE_TEST_READ]);
|
||||
pipe_read_finished = 1;
|
||||
|
||||
Reference in New Issue
Block a user