针对kubernetes的IIS反向代理失败,并显示错误“无法接收标头;错误= WSAECONNRESET(10054)”。当我尝试使用“ https://XX.ZZ.com/YY/”之类的外部主机名进行访问但此操作与内部主机名““ https://XX-INT.ZZ.com/YY/”一起使用时,此操作失败。以下是WINHTTP跟踪日志:
13:52:22.923 ::current thread is not impersonating
13:52:22.923 ::sys-sender calling HttpSendHttpRequest(overlapped = 27397E50)
13:52:22.923 ::sys-sender transitioning from state _INIT to state _SENDING
13:52:22.923 ::usr-req 260454C0 received OnDnsResolvingName callback
13:52:22.923 ::usr-req 260454C0 received OnDnsNameResolved callback
13:52:22.923 ::usr-req 260454C0 received OnTcpConnecting callback
13:52:22.923 ::sys-req pends send-request
13:52:22.923 ::WinHttpSendRequest() returning TRUE
13:52:22.923 ::usr-req 260454C0 received OnTcpConnected callback
13:52:22.923 ::usr-req 260454C0 received OnSendingRequest callback
13:52:22.923 ::usr-req 260454C0 received OnRequestSent callback
13:52:22.924 :: <c-b> an async I/O operation completes (overlapped = 27397E50, #bytes/info = 0, error = ERROR_SUCCESS (0))
13:52:22.924 ::sys-sender processing HttpSendHttpRequest completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 0, overlapped = 27397E50)
13:52:22.924 ::sys-sender sent a request successfully
13:52:22.924 ::sys-req completing a send-request call (error = ERROR_SUCCESS (0))
13:52:22.924 ::usr-req 260454C0 received OnSendRequest callback; error = ERROR_SUCCESS (0)
13:52:22.924 ::Completing WinHttpSendRequest() with success; Request Handle = 02B13EA0, Context = 267DB5B0, Buffer = 00000000 (0x0), Buffer Length = 0
13:52:22.924 ::WinHttpReceiveResponse(0x2b13ea0, 0x0)
13:52:22.924 ::sys-recver starts in _INIT state
13:52:22.924 ::current thread is not impersonating
13:52:22.924 ::sys-recver processing WebReceiveHttpResponse completion (error-cdoe = WSAECONNRESET (0x2746), overlapped = 27397E50))
13:52:22.924 ::sys-recver failed to receive headers; error = WSAECONNRESET (10054)
13:52:22.924 ::ERROR_WINHTTP_FROM_WIN32 mapped (WSAECONNRESET) 10054 to (ERROR_WINHTTP_CONNECTION_ERROR) 12030
13:52:22.924 ::sys-recver returning ERROR_WINHTTP_CONNECTION_ERROR (12030) from RecvResponse()
13:52:22.924 ::sys-req shutting down; recv-headers encountered fatal error; error = ERROR_WINHTTP_CONNECTION_ERROR (12030)
13:52:22.924 ::sys-req completes recv-headers inline (sync); error = ERROR_WINHTTP_CONNECTION_ERROR (12030)
13:52:22.924 ::usr-req 260454C0 releases sys-req 157AEE90
13:52:22.924 ::sys-req failed to cancel the request; the object is already shutting down
13:52:22.924 ::Completing WinHttpReceiveResponse() with error ERROR_WINHTTP_CONNECTION_ERROR (12030); Request Handle = 02B13EA0, Context = 267DB5B0
13:52:22.924 ::WinHttpReceiveResponse() returning TRUE
13:52:22.924 ::WinHttpCloseHandle(0x2b13ea0)