1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 07:38:52 -05:00

Return SPDYLAY_ERR_EOF when SSL/TLS or underlying TCP connection is closed.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-11 00:22:38 +09:00
parent 3e2dc04264
commit aba18f4ba7

View File

@ -288,7 +288,7 @@ ssize_t recv_callback(spdylay_session *session,
r = SPDYLAY_ERR_CALLBACK_FAILURE;
}
} else if(r == 0) {
r = SPDYLAY_ERR_CALLBACK_FAILURE;
r = SPDYLAY_ERR_EOF;
}
return r;
}