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
1 changed files with 1 additions and 1 deletions

View File

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