Comments (3)
EPOLLONESHOT can guarantee that there will never be two threads simultaneously trigger _HandleRead
from delphi-cross-socket.
Due to the architectural problem of this framework, out-of-order reception occurs when a large number of packets are received, which is difficult to avoid.
Unless each thread has its own Epoll or iocp or kqueue. Moreover, each Socket is bound in an io queue (that is, all IOs of a socket are processed by only one thread) to avoid this sticking.
from delphi-cross-socket.
由于此框架的架构问题,大量包接收时会出现乱序接收现象,这是很难避免。
除非每个线程有各自的Epoll或iocp或kqueue。而且每个Socket绑定在一个io队列(即一个socket所有的IO仅由某一个线程来处理)才能避免粘包现象。
from delphi-cross-socket.
Related Issues (20)
- CrossHttpConsole 接收 POST 大文件(>2GB)数据, 0D0A 会变为 0D0A0A HOT 1
- 大神,您提交新代码以后,部分类带有OVERRIDE的构造函数,都失效了 HOT 1
- WebSocket Server中如何开启压缩功能?以及发送Ping控制帧? HOT 4
- Use English as default HOT 5
- httpclient连接自签名服务器失败 HOT 2
- linux下进行百万请求压测过段时间请求就会无响应 HOT 4
- websocket 提交长字符串的时候,服务方没有反应,但是提交短字符串的时候,没有问题,使用其他控件长字符串没问题。 HOT 2
- WebSocketClient连接C#的WebSocket生成Key有问题 HOT 1
- websocket 使用ssl后,自带demo连接正常,用以下网址连接测试,会发生握手失败 HOT 2
- WebSocketServer例子编译不了 HOT 1
- 调试WebSocket时发现一出内存泄漏 HOT 2
- 当使用websocket的时候,AUrl是 'ws://xxxx',协议应该是 http。 应用目录里面没有libcripto.dll。 HOT 9
- TCrossHttpUtils.ExtractUrl 解析url的时候,没有考虑 ws://127.0.0.1:8080 的情况,如果后面没有APath. HOT 2
- 自带的demo在ios下编译出错 HOT 1
- WebSocket客户端连接服务端还没准备好,服务端就返回封包了.导致错过了第一条封包. HOT 6
- 请问怎么使用webservice的session呢? HOT 1
- ios下仍然报错 HOT 2
- ICrossConnection 是否可以添加一个预留的指针用来保存和他关联的某个对象?类似于控件的tag, 或者 ListBoxItem 里面的tagObject。 HOT 2
- ICrossServer开启SSL后一个奇怪的问题 HOT 5
- 遇到一个SSL莫名其妙的问题,请教一下
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 delphi-cross-socket.