0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/server
Matthew Holt 4d71620cb0 core (Windows): Retry every 100ms for 2s if listener fails to bind
In testing, I've found that Windows doesn't release the socket right away even though the listener is closed, so calling caddy.Start() right after caddy.Stop() can fail. This change has server.ListenAndServe() try up to 20 times every 100ms to bind the listener, and only return an error if it doesn't succeed after 2 seconds. This might be kind of nifty for Unix, too, but there hasn't been a need for it yet.
2015-10-31 13:22:23 -06:00
..
config.go Support for OCSP Stapling. Fixes #280 2015-10-24 04:36:54 +02:00
graceful.go core: Major refactor for graceful restarts; numerous fixes 2015-10-26 13:34:31 -06:00
server.go core (Windows): Retry every 100ms for 2s if listener fails to bind 2015-10-31 13:22:23 -06:00
virtualhost.go Moved fileServer and browse.IndexPages into middleware package 2015-09-19 20:35:48 -06:00