Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawListener ¶
type RawListener struct {
*net.TCPListener
}
RawListener is the place where we accept new TCP connections and set specific options on such connections. We unconditionally set the keepalive timeout for all connections, so that dead TCP connections (e.g. laptop closed amid a download) eventually go away.
Note: Adapted from net/http package.
Click to show internal directories.
Click to hide internal directories.