Skip to content
Snippets Groups Projects
Commit 313719c1 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Reverted back to blocking sockets, using NB sockets caused recv() returning...

Reverted back to blocking sockets, using NB sockets caused recv() returning too early in tcp_recv().

refs #1289
parent 380ccbeb
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include "fdset.h"
......@@ -75,10 +74,6 @@ int fdset_epoll_add(fdset_t *fdset, int fd, int events)
fdset->reserved += chunk;
}
/* Set non-blocking. */
int flags = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, flags | O_NONBLOCK);
/* Add to epoll set. */
struct epoll_event ev;
ev.events = EPOLLIN; /*! \todo MAP events. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment