I have a server using libev Whenever a client socket breaks the socket connection is stopped using a code like this

ev_io_stop(loop, watcher);

Do I need to specifically call shutdown() or close()

有帮助吗?

解决方案

calling close() solved the issue.

I guess that would have helped if documented

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top