forked from sourcegraph/zoekt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webserver: shutdown via close if using RPC (sourcegraph#516)
Our RPC system does not support shutdown and hijacks the underlying http connection. This means shutdown is ineffective and just waits 10s before calling close. Lets just quit faster in that case. Test Plan: Run zoekt-webserver with and without rpc. Run kill and observe behaviour.
- Loading branch information
1 parent
5bbffb3
commit 38d5f90
Showing
1 changed file
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters