evio icon indicating copy to clipboard operation
evio copied to clipboard

Fast event-loop networking for Go

Results 28 evio issues
Sort by recently updated
recently updated
newest added

panic: no such file or directory goroutine 50 [running]: github.com/tidwall/evio/internal.(*Poll).ModReadWrite(0xc4202ea060, 0x507) /xagiot/home/yangxin/iot-proxy/src/github.com/tidwall/evio/internal/internal_linux.go:116 +0x8c github.com/tidwall/evio.loopRead(0xc42030a000, 0xc4202d0100, 0xc4209c9050, 0xc4208ffb70, 0x0) /xagiot/home/yangxin/iot-proxy/src/github.com/tidwall/evio/evio_unix.go:445 +0x17d github.com/tidwall/evio.loopRun.func2(0x507, 0x0, 0x0, 0x0, 0x0) /xagiot/home/yangxin/iot-proxy/src/github.com/tidwall/evio/evio_unix.go:245 +0xe6 github.com/tidwall/evio/internal.(*Poll).Wait(0xc4202ea060, 0xc420a93fa8, 0xc42030a000,...

https://github.com/tidwall/evio/blob/b353be3a765785dafabbb63a7b25aadec3533946/examples/http-server/main.go#L174 I found this code to be able to query the path 2019/01/22 15:25:40 req path:/ 2019/01/22 15:25:40 req query:file=1.txt req.Path = sdata[s:s+q] req.Query = sdata[s+q+1:i]

Hi, There is no way to make sure that no error has been occurred during the "write": I suggest adding a `PostWrite` event with an error as a parameter! Thanks...

Since I consider evio the first/old school event loop libraries for Go I wonder what is the difference between all these newer ones like: https://github.com/panjf2000/gnet https://github.com/hslam/netpoll https://github.com/xtaci/gaio https://github.com/Allenxuxu/gev It seems...

To write you will need to call the wake(id) function. This will fire a Data event with a nil input on the next loop step. Then return the data you...

events.Data = func(c evio.Conn, in []byte) (out []byte, action evio.Action) { fmt.Println("events.Data ") if in == nil { //how to know is close action? fmt.Println("in is nil Closed") action =...

If you are sending large amounts of data (multiple megabytes) and you don't want to allocate that large a byte slice, one option is to send the data and have...