0x19 / goesl

Freeswitch Event Socket Library wrapper for Go
https://godoc.org/github.com/0x19/goesl
MIT License
125 stars 124 forks source link

reuse last buffer when reading from net.Conn #16

Closed harry-hao closed 4 years ago

harry-hao commented 6 years ago

reuse the buffer to pickup what's left in it, instead of create new buffer each time, this should fix https://github.com/0x19/goesl/issues/1

lugiger commented 5 years ago

Can this be merged, please?