mirror of
https://github.com/opensim/opensim.git
synced 2026-08-03 07:26:16 +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:
@@ -281,6 +281,9 @@ namespace OSHttpServer
|
||||
|
||||
public void Send()
|
||||
{
|
||||
if(m_context.IsClosing)
|
||||
return;
|
||||
|
||||
if (Sent)
|
||||
throw new InvalidOperationException("Everything have already been sent.");
|
||||
|
||||
@@ -446,7 +449,7 @@ namespace OSHttpServer
|
||||
if (m_body != null)
|
||||
m_body.Dispose();
|
||||
Sent = true;
|
||||
m_context.EndSendResponse(requestID, Connection);
|
||||
await m_context.EndSendResponse(requestID, Connection).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private int CheckBandwidth(int request, int bytesLimit)
|
||||
|
||||
Reference in New Issue
Block a user