diff options
| author | Adnan Maolood <[email protected]> | 2021-02-23 12:10:52 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-23 12:10:55 -0500 |
| commit | 1080e95bb4d3ea5a7b8c4281ff22fdfe72b2206b (patch) | |
| tree | a607df855a038cf023fa5ad78daaa93c04a648be /server.go | |
| parent | server: Make ErrorLog an interface (diff) | |
| download | go-gemini-1080e95bb4d3ea5a7b8c4281ff22fdfe72b2206b.tar.xz go-gemini-1080e95bb4d3ea5a7b8c4281ff22fdfe72b2206b.zip | |
server: Document use of context in ListenAndServev0.1.15-alpha.1
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -172,7 +172,8 @@ func (srv *Server) Shutdown(ctx context.Context) error { // ListenAndServe listens for requests at the server's configured address. // ListenAndServe listens on the TCP network address srv.Addr and then calls -// Serve to handle requests on incoming connections. +// Serve to handle requests on incoming connections. If the provided +// context expires, ListenAndServe closes l and returns the context's error. // // If srv.Addr is blank, ":1965" is used. // |