当前位置:网站首页>Epollet lessons
Epollet lessons
2022-07-03 09:37:00 【zhyg_ three hundred and twenty-one】
In the use of epoll Of ET Pattern . Read a lot of information on the Internet , Some basic concepts ,
for example accept and recive To go back EAGAIN or EWOULDBLOCK Just stop .
problem :
Such as EPOLL The author of Davide Libenzi said , If you are right fd Register at the same time EPOLLIN | EPOLLOUT event ,
Even if the send buffer does not change from full to empty , It will also trigger EPOLLOUT event ( Reference link :http://www.0x61.com/forum/post3712824.html).
stay epoll_wait() Wait until you want to accept the connection , Yes accept() The function needs to read circularly , Until return EWOULDBLOCK Just stop , Otherwise, when a lot of concurrency comes , It's easy to lose connections
边栏推荐
- Flink学习笔记(九)状态编程
- PolyWorks script development learning notes (III) -treeview advanced operation
- Leetcode daily question (2090. K radius subarray averages)
- LeetCode每日一题(2232. Minimize Result by Adding Parentheses to Expression)
- 一款开源的Markdown转富文本编辑器的实现原理剖析
- Hudi 快速体验使用(含操作详细步骤及截图)
- PolyWorks script development learning notes (I) - script development environment
- Apply for domain name binding IP to open port 80 record
- 基于opencv实现桌面图标识别
- Idea uses the MVN command to package and report an error, which is not available
猜你喜欢

Analysis of the implementation principle of an open source markdown to rich text editor

Apply for domain name binding IP to open port 80 record

Windows安装Redis详细步骤

Utilisation de hudi dans idea

Flink learning notes (VIII) multi stream conversion

Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 2 --blinker_ Hello_ WiFi (lighting technology - Mobile App control routine)

Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)

PolyWorks script development learning notes (II) -treeview basic operations

PolyWorks script development learning notes (4) - data import and alignment using file import

IDEA 中使用 Hudi
随机推荐
Numerical analysis notes (I): equation root
[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
Flink学习笔记(九)状态编程
LeetCode每日一题(1300. Sum of Mutated Array Closest to Target)
Jestson Nano 从tftp服务器下载更新kernel和dtb
Failed building wheel for argon2 cffi when installing Jupiter
一款开源的Markdown转富文本编辑器的实现原理剖析
Common software open source protocols
Leetcode daily question (2232. minimize result by addressing parents to expression)
[kotlin puzzle] what happens if you overload an arithmetic operator in the kotlin class and declare the operator as an extension function?
PolyWorks script development learning notes (II) -treeview basic operations
Apply for domain name binding IP to open port 80 record
Make the most basic root file system of Jetson nano and mount NFS file system on the server
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
Spark cluster installation and deployment
Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)
Analysis of the implementation principle of an open source markdown to rich text editor
Powerdesign reverse wizard such as SQL and generates name and comment
Solve the problem of disordered code in vscode development, output Chinese and open source code
Hudi learning notes (III) analysis of core concepts