首页
注册
登录
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
V2EX
›
Python
网页客户端 WebSocket 的 ws.send 函数 和 tornado 的 WebSocketHandler 的 self.write_message 函数 保证消息的先后次序吗?
arbipher
·
2014-04-14 21:45:53 +08:00
· 5586 次点击
这是一个创建于 3826 天前的主题,其中的信息可能已经有所发展或是发生改变。
客户端先 send 的消息一定先到服务器,服务器先 write_message 的消息一定先到客户端吗?
如果不保证,有什么推荐的办法解决这个问题?
客户端
write
send
3 条回复
•
1970-01-01 08:00:00 +08:00
1
gfreezy
2014-04-14 22:33:08 +08:00
1
我猜走的是TCP连接,有TCP协议保证的吧
2
dndx
2014-04-15 01:25:49 +08:00
1
WS 走的是 TCP 链接,TCP 保证包序一致,不用担心。
3
arbipher
OP
2014-04-15 02:31:34 +08:00
@
gfreezy
@
dndx
知道了,谢谢~
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1972 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 10:26
·
PVG 18:26
·
LAX 03:26
·
JFK 06:26
Developed with
CodeLauncher
♥ Do have faith in what you're doing.