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)

原文地址:https://www.cnblogs.com/yeyong/p/5162599.html