Comments (1)
There is a problem when UDP
sockets and Unix domain sockets are together requested to be listened by the gnet
server, a conflict arises because we must use SO_REUSEPORT
on UDP
sockets based on the current architecture of gnet
. We can disallow users to listen on both UDP
sockets and Unix domain sockets, but it seems unworthy of doing so because even though setting SO_REUSEPORT
on both UDP
sockets and Unix domain sockets will tip the scales of event-loops, it can work. Therefore, I decided to allow UDP
sockets and Unix domain sockets to co-exist and only disable SO_REUSEPORT
for Unix domain sockets when there is no UDP
sockets.
from gnet.
Related Issues (20)
- [Bug]: GNET client not working as expected HOT 4
- [Bug]: example gnet for echo tcp uses too much memory HOT 7
- [Bug]: Read returns io.ErrShortBuffer on closed connection HOT 7
- Special treatment for the first package HOT 8
- [Question]: How to shut down the started tcp server and turn off port listening? HOT 2
- [Question]: When using io.CopyBuffer(), do you need to call Flush to send the data? HOT 2
- [Bug]: Discard() panic HOT 17
- [Feature]: `io_uring` support HOT 6
- [Question]: there's gnet https server now, how to use gnet https client? HOT 1
- UDP FD handle is not released HOT 1
- [Question]: The redis server service implemented using gnet has too many read tcp i/o timeouts in the production environment. HOT 6
- [Question]: redhub upgraded to use gnet/v2 issues, seemed "stalled" HOT 1
- [Feature]: tls support HOT 5
- [Bug]: gnet.Conn.Peek crashes slice bounds out of range HOT 6
- [bug]: socket fd being reused during `OnClose()` lead to data corruption HOT 6
- [Question]: where is the example project? HOT 3
- [Question]: type engine struct { HOT 2
- [Question]: Does udp buffer support on-demand allocation? HOT 2
- [Question]: client blocks when dialing new connections HOT 19
- [Question]: How to set the client write timeout parameter? HOT 2
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 gnet.