xNathan's recent timeline updates
xNathan

xNathan

V2EX member #238750, joined on 2017-07-04 22:52:55 +08:00
Per xNathan's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
xNathan's recent replies
May 12, 2019
Replied to a topic by HyperSimon macOS Mac 截图如何带阴影?
xnip +1
可能的原因:
后端服务器的 TCP 队列满了,造成 nginx 连接后端时连接被丢弃,队列满可能是后端 PHP 程序处理速度慢,或者正在做压测。

可以观察后端服务器和 nginx 的 TIME_WAIT 状态连接数,以及建立的连接数。

nginx 报错时用 `netstat -s | grep listen` 观察

```bash
123456 times the listen queue of a socket overflowed
233333 SYNs to LISTEN sockets dropped
```

以上两个数值有没有增加,如果有增加说明有报文被丢弃。

解决方法:
参考 https://www.nginx.com/blog/tuning-nginx/ ,将 nginx 反代后端时使用长连接,修改内核的 TCP 参数。
有可能是 USB3.0 设备干扰,比如移动硬盘之类的
搜「电动推杆」,带步进电机,控制电流方向可以推出和缩回

类似这种:
用 requests 建一个全局 session:
s = requests.Session()

清除 cookies:
s.cookies.clear()
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2496 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 04:01 · PVG 12:01 · LAX 21:01 · JFK 00:01
♥ Do have faith in what you're doing.