Skip to content

Commit a387cb3

Browse files
committed
Fixes cpp-netlib#73 -- check for short read at body parsing.
1 parent 2826162 commit a387cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/protocol/http/client/connection/async_normal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ namespace boost { namespace network { namespace http { namespace impl {
330330
}
331331
return;
332332
case body:
333-
if (ec == boost::asio::error::eof) {
333+
if (ec == boost::asio::error::eof || is_ssl_short_read_error) {
334334
// Here we're handling the case when the connection has been
335335
// closed from the server side, or at least that the end of file
336336
// has been reached while reading the socket. This signals the end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy