Comments (2)
gnet.Conn
大部分的方法都不是并发安全的,不能放到新的 goroutine 里执行,仔细看文档:https://pkg.go.dev/github.com/panjf2000/gnet/v2#Conn
from gnet.
🤖 Non-English text detected, translating...
Most methods of gnet.Conn
are not concurrency-safe and cannot be executed in new goroutines. Read the documentation carefully: https://pkg.go.dev/github.com/panjf2000/gnet/v2#Conn
from gnet.
Related Issues (20)
- [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
- [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
- [Question]: Communicate with netty HOT 2
- [Bug]: concurrent map write and read HOT 7
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.