This website requires JavaScript.
Explore
Help
Sign In
status-im
/
tcp-shaker
mirror of
https://github.com/status-im/tcp-shaker.git
Watch
2
Star
0
Fork
You've already forked tcp-shaker
0
Code
Issues
Projects
Releases
Wiki
Activity
2158931305
tcp-shaker
/
pipe_pool.go
7 lines
88 B
Go
Raw
Normal View
History
Unescape
Escape
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-01-31 07:27:44 +00:00
package
tcp
Add PipePool of different implementations
2019-02-12 10:39:31 +00:00
type
pipePool
interface
{
getPipe
(
)
chan
error
putBackPipe
(
chan
error
)
Ensure safety before reuse of pipe
2019-02-12 06:59:09 +00:00
}