From 150b8f8cbd643ba9aceacd00226674bc115d8f83 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 23 Aug 2022 15:11:10 -0400 Subject: [PATCH] Handle long HTTP headers --- libi2pd_client/I2PTunnel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libi2pd_client/I2PTunnel.cpp b/libi2pd_client/I2PTunnel.cpp index c2839c62..1213b439 100644 --- a/libi2pd_client/I2PTunnel.cpp +++ b/libi2pd_client/I2PTunnel.cpp @@ -321,6 +321,8 @@ namespace client m_HeaderSent = true; I2PTunnelConnection::Write ((uint8_t *)m_OutHeader.str ().c_str (), m_OutHeader.str ().length ()); } + else + StreamReceive (); // read more header } } @@ -404,6 +406,8 @@ namespace client m_HeaderSent = true; I2PTunnelConnection::Write ((uint8_t *)m_OutHeader.str ().c_str (), m_OutHeader.str ().length ()); } + else + StreamReceive (); // read more header } }