我正在使用 stunnel 将 SSL 流量隧道传输到端口 80。到目前为止,它一直运行良好。事实上,对于我网站上的大量页面,它仍然运行良好,但对于某些页面,它就是不行。我不能肯定地说,但似乎主要是那些我试图进行 HTTP POST 的页面。
以下是隧道日志:
2013.04.04 18:57:57 LOG5[2184:2416]: https accepted connection from 192.168.1.1:65099
2013.04.04 18:57:57 LOG5[2184:2416]: https connected remote server from 127.0.0.1:1182
2013.04.04 18:57:57 LOG3[2184:2416]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
2013.04.04 18:57:57 LOG5[2184:2416]: Connection reset: 0 bytes sent to SSL, 4290 bytes sent to socket
问题也不在于 Web 服务器,因为我可以正常在端口 80 上发布信息 - 我只是无法通过 SSL/TLS 进行发布。
另外,作为参考,当建立良好的连接时(对于 HTTP GET 请求),它看起来是这样的:
2013.04.04 19:30:42 LOG5[2184:3392]: https accepted connection from 192.168.1.1:65465
2013.04.04 19:30:42 LOG5[2184:1112]: https accepted connection from 192.168.1.1:65466
2013.04.04 19:30:42 LOG5[2184:1116]: https accepted connection from 192.168.1.1:65467
2013.04.04 19:30:42 LOG5[2184:3392]: https connected remote server from 127.0.0.1:1204
2013.04.04 19:30:42 LOG5[2184:1112]: https connected remote server from 127.0.0.1:1205
2013.04.04 19:30:42 LOG5[2184:1116]: https connected remote server from 127.0.0.1:1206
2013.04.04 19:30:43 LOG5[2184:1116]: Connection closed: 33734 bytes sent to SSL, 4365 bytes sent to socket
2013.04.04 19:30:43 LOG5[2184:1112]: Connection closed: 576 bytes sent to SSL, 386 bytes sent to socket
2013.04.04 19:30:45 LOG5[2184:4064]: https accepted connection from 192.168.1.1:65464
2013.04.04 19:30:45 LOG5[2184:1984]: https accepted connection from 192.168.1.1:65463
2013.04.04 19:30:45 LOG5[2184:4064]: https connected remote server from 127.0.0.1:1208
2013.04.04 19:30:45 LOG5[2184:1468]: https accepted connection from 192.168.1.1:65462
2013.04.04 19:30:45 LOG5[2184:1984]: https connected remote server from 127.0.0.1:1209
2013.04.04 19:30:45 LOG5[2184:1468]: https connected remote server from 127.0.0.1:1210
有任何想法吗?
答案1
没关系……我找到了。问题出在那台电脑的 Google Chrome 上。它在其他电脑上安装的其他 Google Chrome 上都能正常工作 - 只是那台不行。我清除了历史记录,直到时间开始,网站才能在那台电脑上再次正常工作。
不知道历史记录(或缓存或历史记录的任何组成部分)是如何导致此问题的。