Commit Graph

3 Commits

Author SHA1 Message Date
Tevin Zhang 562d62828d Add PipePool of different implementations 2019-02-12 18:40:29 +08:00
Tevin Zhang 8e82d76788 Ensure safety before reuse of pipe 2019-02-12 15:22:22 +08:00
Tevin Zhang a89fc1fe18 Refactor
Significant changes:

1. `NewChecker()` accepts no argument, `zeroLinger` is enabled by default
2. Optional parameter `zeroLinger` in `CheckAddr()` turned into `CheckerAddrZeroLinger()`
3. `InitChecker()` -> `CheckingLoop(context)`
4. `ErrNotInitialized` -> `ErrCheckerAlreadyStarted`
5. Fewer system call calling, e.g. `connect()` is called exactly once per check
6. Epoll is now edge-triggered
2019-02-11 17:54:51 +08:00