非常感谢这篇博文,参考后完美解决我的问题:
http://blog.youkuaiyun.com/u010267491/article/details/52775115
背景:小程序+https,后台使用的是nginx+tomcat7,但是正常发送几个请求就会有一个卡主超时,nginx报错如下:
upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, ....
参口以上博文后把nginx配置servername 从localhost修改为127.0.0.1后问题解决,