mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
PINE: Disable nagle buffering
This commit is contained in:
parent
cc667cd88c
commit
3172eac8df
|
@ -204,12 +204,16 @@ PINEServer::PINESocket::~PINESocket() = default;
|
||||||
|
|
||||||
void PINEServer::PINESocket::OnConnected()
|
void PINEServer::PINESocket::OnConnected()
|
||||||
{
|
{
|
||||||
INFO_LOG("PINE: New client at {} connected.", GetRemoteAddress().ToString());
|
INFO_LOG("New client at {} connected.", GetRemoteAddress().ToString());
|
||||||
|
|
||||||
|
Error error;
|
||||||
|
if (GetLocalAddress().IsIPAddress() && !SetNagleBuffering(false, &error))
|
||||||
|
ERROR_LOG("Failed to disable nagle buffering: {}", error.GetDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PINEServer::PINESocket::OnDisconnected(const Error& error)
|
void PINEServer::PINESocket::OnDisconnected(const Error& error)
|
||||||
{
|
{
|
||||||
INFO_LOG("PINE: Client {} disconnected: {}", GetRemoteAddress().ToString(), error.GetDescription());
|
INFO_LOG("Client {} disconnected: {}", GetRemoteAddress().ToString(), error.GetDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PINEServer::PINESocket::OnRead()
|
void PINEServer::PINESocket::OnRead()
|
||||||
|
|
Loading…
Reference in a new issue