我使用高延迟/低带宽接口进行了一些测试,并得到了预期的错误。
这导致(如预期)出现以下错误:
AssertionError: This event is already used by another greenlet: (<Greenlet
at 0x7f3e758722d0: <bound method socket.sendall of <socket at 0x7f3e7587719
0 fileno=8 sock=127.0.0.1:1234 peer=127.0.0.1:51042>>('11111111111111111111
11111111111111111111111111111)>, timeout('timed out',))
Run Code Online (Sandbox Code Playgroud)
这是固定的测试脚本gevent.coros.RLock,不会产生此错误:https://gist.github.com/4249827/7f02f805331eda4091ae0b39dfea4b102cdba2fa
| 归档时间: |
|
| 查看次数: |
2437 次 |
| 最近记录: |