You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
@ -1333,16 +1333,11 @@ namespace System.Net.Http
|
||||
0,
|
||||
state.ToIntPtr()))
|
||||
{
|
||||
int lastError = Marshal.GetLastWin32Error();
|
||||
Debug.Assert((unchecked((int)lastError) != Interop.WinHttp.ERROR_INSUFFICIENT_BUFFER &&
|
||||
unchecked((int)lastError) != unchecked((int)0x80090321)), // SEC_E_BUFFER_TOO_SMALL
|
||||
$"Unexpected async error in WinHttpRequestCallback: {unchecked((int)lastError)}");
|
||||
|
||||
// Dispose (which will unpin) the state object. Since this failed, WinHTTP won't associate
|
||||
// our context value (state object) to the request handle. And thus we won't get HANDLE_CLOSING
|
||||
// notifications which would normally cause the state object to be unpinned and disposed.
|
||||
state.Dispose();
|
||||
throw WinHttpException.CreateExceptionUsingError(lastError);
|
||||
WinHttpException.ThrowExceptionUsingLastError();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,10 +317,6 @@ namespace System.Net.Http
|
||||
|
||||
Debug.Assert(state != null, "OnRequestError: state is null");
|
||||
|
||||
Debug.Assert((unchecked((int)asyncResult.dwError) != Interop.WinHttp.ERROR_INSUFFICIENT_BUFFER &&
|
||||
unchecked((int)asyncResult.dwError) != unchecked((int)0x80090321)), // SEC_E_BUFFER_TOO_SMALL
|
||||
$"Unexpected async error in WinHttpRequestCallback: {unchecked((int)asyncResult.dwError)}, WinHttp API: {unchecked((uint)asyncResult.dwResult.ToInt32())}");
|
||||
|
||||
Exception innerException = WinHttpException.CreateExceptionUsingError(unchecked((int)asyncResult.dwError));
|
||||
|
||||
switch (unchecked((uint)asyncResult.dwResult.ToInt32()))
|
||||
|
Reference in New Issue
Block a user