python https request产生 nginx 499错误的解决

首先是nginx上的一些配置

#参数都有所调整.目的是解决代理过程中出现的一些502 499错误
tcp_nopush on;
tcp_nodelay on;
proxy_ignore_client_abort on;


其次python代码中在建立连接与发送request时要有一定的timewait,比如time.sleep(1)

 

posted on 2016-01-27 11:14  js.yeyong  阅读(770)  评论(0编辑  收藏  举报

导航