refactor the error handling and optimize the heap allocation

This commit is contained in:
2025-05-04 13:32:31 +10:00
parent 4abc00f07c
commit 0c1a9fb7e7
6 changed files with 242 additions and 66 deletions

View File

@@ -40,6 +40,8 @@ type ConnectionConfig interface {
type TCPConnectionConfig interface {
ConnectionConfig
KeepAlive() bool
ReadRetry() int
WriteRetry() int
}
type UDPConnectionConfig interface {