推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
kingmo888
V2EX  ›  Python

请教大佬们一个 Python websocket 的多线程/进程问题。

  •  
  •   kingmo888 · Dec 24, 2018 · 2616 views
    This topic created in 2841 days ago, the information mentioned may be changed or developed.

    对支持这个的框架不是非常了解,想咨询个问题:

    以 websocket 做服务端, 我想从客户端发送请求到服务端,服务端再去请求一些数据(需要几秒的时间)。

    当多个客户端同时发送请求时,服务端就只能响应正在链接中的客户端,其他客户端请求都会失败。

    比如我用 autobahn-python 框架,开 2 个客户端时,另外一个客户端是这样的: dropping connection to peer tcp:127.0.0.1:9000 with abort=True: WebSocket opening handshake timeout (peer did not finish the opening handshake in time)

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2591 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:04 · PVG 11:04 · LAX 20:04 · JFK 23:04
    ♥ Do have faith in what you're doing.