Make HTTP server wait for tasks before shutdown

This commit is contained in:
iofq
2024-11-05 13:28:57 -06:00
parent 74364544c2
commit 8436001d5b
3 changed files with 6 additions and 5 deletions

View File

@@ -133,6 +133,8 @@ func retryableError(err error) bool {
}
switch err {
case context.Canceled:
return false
case io.EOF:
return true
case io.ErrUnexpectedEOF: