Comments (6)
我们不对 client 做任何承诺. 以保护 server 的资源. 换句话说, server 可以在不通知 client 的任何情况下, 拒绝为 client 服务.
from skynet.
同时, server 也不对 client 的任何行为做任何预期. 也就是 client 可以不遵守通讯协议.
如果你需要你说的那种行为, 那么设计协议的时候, 就永远由 server 的业务逻辑发起 close.
from skynet.
按现在socket server的实现,如果不作修改,似乎无法由 server 的业务逻辑发起 close,因为FIN被socket server探测到之后就force close了
from skynet.
我的意思是由通讯协议干这个事情, 不要用半关闭这种信号来做.
from skynet.
ok,thanks.
from skynet.
@lparam 目前的版本已经可以在收到客户端的 FIN 后发送完数据。
from skynet.
Related Issues (20)
- Accessibility HOT 3
- 如何退出skynet
- 安装失败,怎么解决? HOT 4
- 使用UnityWebSocket库进行连接,服务端有收到Socket并提示Socket连接建立,但客户端的Socket状态仍然为Connecting HOT 2
- MAC OSX 上, client.crypt 库会导致 LUA 的标准输入IO卡住。 HOT 1
- 使用官方的lua,导致[:00000000] A message from [ :01000002 ] to [ :01000002 ] maybe in an endless loop (version = 1) HOT 3
- socket channel WIKI 文档有点旧, 能否更新一下 HOT 1
- skynet 开发mmo 遇到性能问题,没有很好的办法排查,希望大家能提供点思路。
- skynet segfault HOT 3
- 引用计数问题 HOT 1
- 消息队列销毁问题
- 传递给mysql.execute的变长参数,最后一个参数为nil会报错 HOT 1
- skynet v1.7.0 在intel芯片的mac上编译后,启动snlua服务失败 HOT 1
- sproto dump 无法正确处理*array() HOT 2
- 下了份今天最新的代码跑https客户端压力测试,跑一会崩了,重现了两次 HOT 16
- skynet websocket client 粘包问题
- skynet websocket 处理 header 后面第一个 payload HOT 1
- Lua 5.4.6浮点运算崩溃 HOT 5
- socket.read may never return when socket.close concurrently HOT 1
- mongo api的代码风格不一致问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skynet.