mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
remove some useless code form http low level; delay normal connection close, to let client do it instead
This commit is contained in:
@@ -277,7 +277,7 @@ namespace OSHttpServer
|
||||
if (context.TriggerKeepalive)
|
||||
{
|
||||
context.TriggerKeepalive = false;
|
||||
context.MonitorKeepaliveStartMS = nowMS;
|
||||
context.MonitorKeepaliveStartMS = nowMS + 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,10 @@ namespace OSHttpServer
|
||||
{
|
||||
if (EnvironmentTickCountAdd(context.TimeoutKeepAlive, context.MonitorKeepaliveStartMS) < nowMS)
|
||||
{
|
||||
disconnectError = SocketError.TimedOut;
|
||||
if(context.IsClosing)
|
||||
disconnectError = SocketError.Success;
|
||||
else
|
||||
disconnectError = SocketError.TimedOut;
|
||||
context.MonitorKeepaliveStartMS = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user