diff --git a/examples/spdylay_ssl.cc b/examples/spdylay_ssl.cc index d586bb4..0014103 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; }