From aba18f4ba781bbb344778e0a42e1abda05d00e0c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 11 May 2012 00:22:38 +0900 Subject: [PATCH] Return SPDYLAY_ERR_EOF when SSL/TLS or underlying TCP connection is closed. --- examples/spdylay_ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/spdylay_ssl.cc b/examples/spdylay_ssl.cc index d586bb43..0014103d 100644 --- a/examples/spdylay_ssl.cc +++ b/examples/spdylay_ssl.cc @@ -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; }