remove async await no longer used
parent
e08ca7402c
commit
0c716cbd73
|
@ -516,7 +516,7 @@ namespace OSHttpServer
|
|||
ContextTimeoutManager.EnqueueSend(this, m_currentResponse.Priority, notThrottled);
|
||||
}
|
||||
|
||||
public async Task EndSendResponse(uint requestID, ConnectionType ctype)
|
||||
public void EndSendResponse(uint requestID, ConnectionType ctype)
|
||||
{
|
||||
isSendingResponse = false;
|
||||
m_currentResponse?.Clear();
|
||||
|
|
|
@ -469,7 +469,7 @@ namespace OSHttpServer
|
|||
if (m_body != null)
|
||||
m_body.Dispose();
|
||||
Sent = true;
|
||||
await m_context.EndSendResponse(requestID, Connection).ConfigureAwait(false);
|
||||
m_context.EndSendResponse(requestID, Connection);
|
||||
}
|
||||
|
||||
private int CheckBandwidth(int request, int bytesLimit)
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace OSHttpServer
|
|||
|
||||
void StartSendResponse(HttpResponse response);
|
||||
void ContinueSendResponse(bool notThrottled);
|
||||
Task EndSendResponse(uint requestID, ConnectionType connection);
|
||||
void EndSendResponse(uint requestID, ConnectionType connection);
|
||||
bool TrySendResponse(int limit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue