You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Servers/Kestrel/Transport.Sockets/src/SocketTransportOptions.cs
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,18 @@ public class SocketTransportOptions
44
44
45
45
publiclong?MaxWriteBufferSize{get;set;}=64*1024;
46
46
47
+
/// <summary>
48
+
/// Inline application and transport continuations instead of dispatching to the threadpool.
49
+
/// </summary>
50
+
/// <remarks>
51
+
/// This will run application code on the IO thread which is why this is unsafe.
52
+
/// It is recommended to set the DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS environment variable to '1' when using this setting to also inline the completions
53
+
/// at the runtime layer as well.
54
+
/// This setting can make performance worse if there is expensive work that will end up holding onto the IO thread for longer than needed.
55
+
/// Test to make sure this setting helps performance.
0 commit comments