Closed indexk09 closed 2 years ago
It's non blocking call.
@Allenxuxu Can you please share some info on how this would make non blocking "system call". Also if is non-blocking system call how do I make sure I don't run into OOM? for example, lets says server is constantly broadcasting/writing at a high speed and clients may not keep up with that speed. wouldn't that result in OOM? if so, how do I prevent it?
@Allenxuxu Can you please share some info on how this would make non blocking "system call". Also if is non-blocking system call how do I make sure I don't run into OOM? for example, lets says server is constantly broadcasting/writing at a high speed and clients may not keep up with that speed. wouldn't that result in OOM? if so, how do I prevent it?
https://github.com/Allenxuxu/gev/issues/52
look at this
The write to socket here in the websocket broadcast example https://github.com/Allenxuxu/gev/blob/master/example/websocket/main.go#L144 makes a blocking or non blocking system call? If blocking is there anyway to do or advisable to do non-blocking system call for low latency applications?