Changed TimedOut error to Conn Reset

This commit is contained in:
KuRi
2013-04-19 22:45:02 +02:00
parent cc9e29c671
commit 840bfda332

View File

@@ -456,7 +456,7 @@ int tls_read(tls_t *tls, void * const buff, const size_t len)
tls->recvbuffermaxlen - tls->recvbufferpos); tls->recvbuffermaxlen - tls->recvbufferpos);
if (bytes == 0) { if (bytes == 0) {
tls->lasterror = WSAETIMEDOUT; tls->lasterror = WSAECONNRESET;
return -1; return -1;
} }