Commit 32816524e9c1ad26c801700d09dc38021923d6f7

Authored by Georg Hopp
1 parent 8320f0a2

if I have a socketNonblock method I should better use it. :D

Showing 1 changed file with 1 additions and 4 deletions
... ... @@ -71,12 +71,9 @@ serverCtor(void * _this, va_list * params)
71 71
72 72 this->sock = new(Sock, this->logger, port);
73 73 socketNonblock(this->sock);
74   - flags = fcntl(this->sock->handle, F_GETFL, 0);
75   - fcntl(this->sock->handle, F_SETFL, flags | O_NONBLOCK);
76 74
77 75 this->sockSSL = new(Sock, this->logger, port+1);
78   - flags = fcntl(this->sockSSL->handle, F_GETFL, 0);
79   - fcntl(this->sockSSL->handle, F_SETFL, flags | O_NONBLOCK);
  76 + socketNonblock(this->sockSSL);
80 77
81 78 SSL_library_init();
82 79 SSL_load_error_strings();
... ...
Please register or login to post a comment