[ARVADOS] created: 049b7e0eb603e672f56248fcd500acaf03c474c8

Git user git at public.curoverse.com
Tue Apr 19 10:16:57 EDT 2016


        at  049b7e0eb603e672f56248fcd500acaf03c474c8 (commit)


commit 049b7e0eb603e672f56248fcd500acaf03c474c8
Author: Tom Clegg <tom at curoverse.com>
Date:   Tue Apr 19 10:15:39 2016 -0400

    9005: Workaround: Close idle connections aggressively.
    
    Currently, the SDK code never reuses connections anyway, so it's best
    to shut them down right away.

diff --git a/services/keep-web/handler.go b/services/keep-web/handler.go
index e1b2362..b07e0b0 100644
--- a/services/keep-web/handler.go
+++ b/services/keep-web/handler.go
@@ -320,6 +320,10 @@ func (h *handler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {
 		statusCode, statusText = http.StatusInternalServerError, err.Error()
 		return
 	}
+	if kc.Client != nil && kc.Client.Transport != nil {
+		// Workaround for https://dev.arvados.org/issues/9005
+		defer kc.Client.Transport.CloseIdleConnections()
+	}
 	rdr, err := kc.CollectionFileReader(collection, filename)
 	if os.IsNotExist(err) {
 		statusCode = http.StatusNotFound

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list