Comments (3)
@Skiy 你参考下这个示例:https://github.com/gogf/gf/blob/master/geg/net/gtcp/gtcp_server_client1.go ,当客户端Close
之后,服务端会出现EOF
错误。
from gf.
@Skiy 分开的server
和client
端代码请参考:https://github.com/gogf/gf/tree/master/geg/net/gtcp/server_client
from gf.
找到原因了。
我 server
端接收到消息就把这个 conn Close
掉了,所以不会再收到 client
的关闭请求了。
是我逻辑的问题。
from gf.
Related Issues (20)
- `gf gen ctrl` uses AST to get Imports and CtrlDefinition of CGenCtrl.getApiItemsInDst
- gf gen serive: The same package import to the same package with different aliases
- About gf gen ctrl I have a suggestion
- g.DB().Model("table t") has a bug HOT 3
- post request cannot deal HOT 1
- Hope gf gen ctrl supports controller template customization HOT 1
- If it contains the "?" character, gdb.Raw generates an error SQL HOT 1
- Can SQL statement splicing support placeholder rules other than question marks? HOT 1
- [v2.7.0] gconv.Struct is not compatible with previous versions HOT 1
- Some ideas on improving the Scan method of orm HOT 5
- contrib/sdk/httpclient: Support extended response handler
- os/gtime:I suggest adding a few additional flags to the GTCP protocol header
- [v2.5.2]Investigating Blocking Issues with GoFrame 2.5 During POST Requests to Third-Party APIs
- cmd/gf: pbentity gen fail in monoRepo
- Suggestions on how to process files after gf gen dao in database tables, it has been tested and feasible
- gvalid slice enums verification failed : no pkg path found for type "[]t.Status"
- database/gdb: Inconsistency in the err returned when no data is queried during the query
- database/gdb: When (update/insert) operation, if the number of fields in the data table is 0, an error will be returned directly HOT 1
- I encountered this error when using websocket, and I want to know how to solve it. HOT 2
- os/gtime: There is a bug in converting string to gtime.Time HOT 3
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 gf.