Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FlushOutgoingBytesAsync()

async Task System.Net.Http.Http2Connection.FlushOutgoingBytesAsync ( )
inlineprivate

Definition at line 1969 of file Http2Connection.cs.

1970 {
1971 if (System.Net.NetEventSource.Log.IsEnabled())
1972 {
1973 Trace($"{"ActiveLength"}={_outgoingBuffer.ActiveLength}", "FlushOutgoingBytesAsync");
1974 }
1975 if (_outgoingBuffer.ActiveLength > 0)
1976 {
1977 try
1978 {
1980 }
1981 catch (Exception abortException)
1982 {
1984 }
1986 _outgoingBuffer.Discard(_outgoingBuffer.ActiveLength);
1987 }
1988 }
Task WriteAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:914
System.Net.ArrayBuffer _outgoingBuffer
override void Trace(string message, [CallerMemberName] string memberName=null)
static readonly System.Net.NetEventSource Log
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Net.Http.Http2Connection._lastPendingWriterShouldFlush, System.Net.Http.Http2Connection._outgoingBuffer, System.Net.Http.Http2Connection._stream, System.Net.Abort, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Net.NetEventSource.Log, System.Net.Http.Http2Connection.Trace(), and System.IO.Stream.WriteAsync().

Referenced by System.Net.Http.Http2Connection.ProcessOutgoingFramesAsync().