mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

Set SO_REUSEADDR socket option? #67

Open securityguy opened 5 years ago

securityguy commented 5 years ago

Thanks for your work on this! I'm in the process of learning Go and am using this library for log ingestion. During development I keep having to reboot. If the application exits before the UDP socket is closed, the socket is left in TIME_WAIT and the application can't bind to it when I restart it.

Would it be possible to set the SO_REUSEADDR socket option?