This commit is contained in:
parent
3bdb33ccd4
commit
b280597c68
|
|
@ -205,6 +205,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
|
|||
return null;
|
||||
}
|
||||
|
||||
// Synchronize access to native methods that might run in parallel with IO loops
|
||||
lock (_contextLock)
|
||||
{
|
||||
return NativeMethods.HttpTryGetServerVariable(_pInProcessHandler, variableName, out var value) ? value : null;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core.IO
|
|||
|
||||
public AsyncIOEngine(object contextSync, IntPtr handler)
|
||||
{
|
||||
this._contextSync = contextSync;
|
||||
_contextSync = contextSync;
|
||||
_handler = handler;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue