V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-12-24 10:39:13 +08:00 · 2041 次点击
    这是一个创建于 1943 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    以 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)

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   933 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:14 · PVG 04:14 · LAX 13:14 · JFK 16:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.