Disable caching of connections from router to function pods (#742)

A temporary fix for #723 which needs to be optimized in future. Disables caching of connections from the router to function pod/service.
This commit is contained in:
Vishal
2018-06-21 12:45:11 +05:30
committed by GitHub
parent 58a5f1cb0b
commit 7642dcf05f
4 changed files with 2 additions and 6 deletions
+2
View File
@@ -94,6 +94,8 @@ func (roundTripper RetryingRoundTripper) RoundTrip(req *http.Request) (resp *htt
// set the timeout for transport context
timeout := roundTripper.initialTimeout
transport := http.DefaultTransport.(*http.Transport)
// Disables caching, Please refer to issue and specifically comment: https://github.com/fission/fission/issues/723#issuecomment-398781995
transport.DisableKeepAlives = true
// cache lookup to get serviceUrl
serviceUrl, err = roundTripper.funcHandler.fmap.lookup(roundTripper.funcHandler.function)
@@ -1,6 +1,4 @@
#!/bin/bash
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
#test:disabled
set -euo pipefail
@@ -1,6 +1,4 @@
#!/bin/bash
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
#test:disabled
set -euo pipefail
@@ -1,6 +1,4 @@
#!/bin/bash
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
#test:disabled
set -euo pipefail