Documentation
¶
Overview ¶
Package socket provides platform-specific socket configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenConfig ¶
func ListenConfig() net.ListenConfig
ListenConfig returns a net.ListenConfig with SO_REUSEADDR enabled This allows the server to restart immediately even if the port is in TIME_WAIT state or held by a zombie process (common after laptop sleep/wake cycles)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.