gnet icon indicating copy to clipboard operation
gnet copied to clipboard

🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go.

Results 66 gnet issues
Sort by recently updated
recently updated
newest added

**Describe the bug** 服务突然出现大量的此类错误,然后整个服务不可用。 想问下什么场景会出现此类错误 **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **System Info...

waiting for response
pending development
needs fix

不知道是使用不当,还是程序的bug,出现这个后,程序出现假死,收不到消息了,但程序并未退出,问题如下: ![image](https://user-images.githubusercontent.com/50606635/182798335-c4a78784-e645-4171-aead-07f54455a223.png) 即出现这几行错误日志后,程序不再接收消息。我查了一下代码,调用如下 1.start后,server_unix.go的171行开始调用 ![image](https://user-images.githubusercontent.com/50606635/182798877-ff40c5d8-dfe9-4c57-937a-a405cb9531d3.png) 2.然后是reactor_default_linux.go的35行调用后,返回第一个错误 ![image](https://user-images.githubusercontent.com/50606635/182799078-966a8fea-06b4-4911-b598-1a3ca04cdcbb.png) 3.调用的是acceptor_unix.go的这个方法, ![image](https://user-images.githubusercontent.com/50606635/182799603-74abea3f-fb08-4f96-a80f-228e5403bc68.png) 从以上看出返回的错误是3步的38行,打印出Accept() fails due to error: too many open files这行错误日志 然后走到2是39行打印出main reactor is exiting due to error: accept a new connection error这行日志错误后,程序不再接收消息...

bug
needs investigation

### Actions I've taken before I'm here - [X] I've thoroughly read the documentations about this problem but still have no answer. - [X] I've searched the Github Issues/Discussions but...

help wanted
question
waiting for response
needs investigation
needs more info

## 1. Are you opening this pull request for bug-fixes, optimizations or new feature? New feature ## 2. Please describe how these code changes achieve your intention. This PR will...

### Description of new feature 1. 当前gnet的客户端使用的是gnet.client+ eventhandler的形式来创建连接,这对于连接重连这样的逻辑不是很友好 2. asyncwritev这样传输一个[][]byte, 这里是否可以增加内存管理的功能呢 ### Scenarios for new feature 需要实现一个高效的sub-pub message system. 本来是异步的方案,采用gnet比采用netpoll好一些,netpoll本身提供了相当于[][]byte级别的内存管理。另外,感觉gnet的客户端库是否可以和服务端不一样呢 ### Breaking changes or not? Yes ### Code snippets (optional)...

enhancement
proposal
waiting for response
needs more info

## 1. Are you opening this pull request for bug-fixes, optimizations or new feature? new feature ## 2. Please describe how these code changes achieve your intention. This PR is...

optimization
pending development
dependencies
working on it
new feature

### Actions I've taken before I'm here - [X] I've thoroughly read the documentations about this problem but still have no answer. - [X] I've searched the Github Issues/Discussions but...

help wanted
question
waiting for response

### Description of new feature Would be great if the `Conn` was a generic interface. Like: ```go // ConnG is a generic interface of underlying connection. type ConnG[Ctx any] interface...

enhancement
proposal
pending development
needs investigation
new feature
breaking changes

### Questions with details 您好,请问一下,支持绑定多个IP吗?(不侦听“0.0.0.0”的情况下) ### Code snippets (optional) _No response_

help wanted
question
proposal
pending development
proposal accepted
working on it