always send Connection: close, strip out Keep-Alive for server HTTP tunnel

This commit is contained in:
orignal 2022-05-28 21:54:58 -04:00
parent 1dded57a1c
commit 6ecab66b0e
2 changed files with 36 additions and 40 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2021, The PurpleI2P Project
* Copyright (c) 2013-2022, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
@ -20,6 +20,7 @@
#include "Destination.h"
#include "Datagram.h"
#include "Streaming.h"
#include "HTTP.h"
#include "I2PService.h"
#include "AddressBook.h"
@ -110,7 +111,9 @@ namespace client
private:
std::string m_Host;
std::stringstream m_InHeader, m_OutHeader;
i2p::http::HTTPReq m_ClientRequest;
std::string m_RequestSendBuffer;
std::stringstream m_InHeader, m_OutHeader; // for responses
bool m_HeaderSent, m_ResponseHeaderSent;
std::shared_ptr<const i2p::data::IdentityEx> m_From;
};