OptionLinger is used to set the linger property. This is the amount of time to wait for send queues to drain when Close() is called. Close() may block for up to this long if there is unsent data, but will return as soon as all data is delivered to the transport. Value is a time.Duration. Default is one second.

OptionLinger is referenced in 2 repositories