Commit Graph

6 Commits

Author SHA1 Message Date
Jakub Sokołowski 2158931305
implement darwin os support
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-14 20:42:37 +01:00
Jakub Sokołowski 8100eb9207
use x/sys/unix instead of syscall to fix EpollWait on Android
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-11 11:47:34 +01:00
Tevin Zhang 793d50316e Unexport EPOLLET 2019-02-13 10:20:58 +08:00
Tevin Zhang f3158e873d Add fds to epoll_ctl error message 2019-02-12 16:19:46 +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
Tevin Zhang ce742af518 Add fake implementation for non-Linux platform 2016-12-06 17:20:41 +08:00