1
stoopuak197 OP 由于发文限制存在的一些报错如下
while not self.blocking_read(timeout): File "/usr/local/lib/python3.8/dist-packages/amqp/connection.py", line 527, in blocking_read frame = self.transport.read_frame() File "/usr/local/lib/python3.8/dist-packages/amqp/transport.py", line 286, in read_frame payload = read(size) File "/usr/local/lib/python3.8/dist-packages/amqp/transport.py", line 457, in _read s = recv(n - len(rbuf)) ConnectionResetError: [Errno 104] Connection reset by peer |
2
err1y 2020-12-09 08:33:17 +08:00 via iPhone
如果你能控制生产者端的话,生产者在产生数据的时候大数据放到其他存储里面,队列里面保存个数据地址,消费者再去通过地址获取数据
|
3
stoopuak197 OP @err1y 非常感谢,这是个非常棒的解决方法! 但是我还是想知道碰上这种问题该怎么解决
|
4
knightdf 2020-12-09 10:08:52 +08:00
两边的 timeout 都得改吧,然后得改 read timeout
|
5
stoopuak197 OP @knightdf 两边的 timeout 指的是? read timeout 我改过但是依旧无效
|