Commit 60c5adda authored by deuce's avatar deuce
Browse files

Re-enable recv timeouts for TLS sessions. It was #ifdef'd out for some

reason.
parent 9c555c15
...@@ -166,10 +166,8 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i ...@@ -166,10 +166,8 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i
return(recv(p->sock, buf, len, flags)); /* Blocked here, indefinitely, in MSP-UDP service */ return(recv(p->sock, buf, len, flags)); /* Blocked here, indefinitely, in MSP-UDP service */
return 0; return 0;
} }
#if 0
if (do_cryptAttribute(p->session, CRYPT_OPTION_NET_READTIMEOUT, p->nonblocking?0:timeout) != CRYPT_OK) if (do_cryptAttribute(p->session, CRYPT_OPTION_NET_READTIMEOUT, p->nonblocking?0:timeout) != CRYPT_OK)
return -1; return -1;
#endif
do { do {
if((ret=cryptPopData(p->session, buf, len, &copied))==CRYPT_OK) { if((ret=cryptPopData(p->session, buf, len, &copied))==CRYPT_OK) {
if(p->nonblocking) if(p->nonblocking)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment