Closed asticode closed 1 year ago
Additionally, and I don't know whether it's part of your plans, that would be awesome to be able to have an API similar to GO's http package with its Server
struct that has a ListenAndServe func that basically blocks on Accept()
and a Shutdown func that shutdowns the server gracefully and unblocks the ListenAndServe()
call.
Again, if you feel like it and point me to the right direction, I'd be happy to submit a PR to add that.
FYI I've finally decided to write my own srt
GO package. You can check it out if you're encountering the same problems.
Cheers
Hi
I've tried the echo-receiver example and it works great!
However if I close the "main" socket in a goroutine,
Accept()
keeps on blocking and thefor
loop never ends 😱Is it desired behavior?
Accept()
?Cheers