]> git.saurik.com Git - apt.git/commitdiff
webserver: 416 errors aren't closing connections
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 6 Apr 2016 14:00:11 +0000 (16:00 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 13 Apr 2016 19:33:32 +0000 (21:33 +0200)
Breaking here lets our handler die which a client will fix by
reconnecting… but that eats time needlessly and is simple the wrong
handling, too.

Git-Dch: Ignore

test/interactive-helper/aptwebserver.cc

index 98db8982e9488571efafe035725ee698f62b1bff..3e91406abdbbc98e9f49a2497a662d48294ccb58 100644 (file)
@@ -760,7 +760,7 @@ static void * handleClient(void * voidclient)                               /*{{{*/
                           headers.push_back(contentrange.str());
                        }
                        sendError(client, 416, *m, sendContent, "", headers);
-                       break;
+                       continue;
                     }
                  }
               }