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:
@@ -94,6 +94,8 @@ func (roundTripper RetryingRoundTripper) RoundTrip(req *http.Request) (resp *htt
|
|||||||
// set the timeout for transport context
|
// set the timeout for transport context
|
||||||
timeout := roundTripper.initialTimeout
|
timeout := roundTripper.initialTimeout
|
||||||
transport := http.DefaultTransport.(*http.Transport)
|
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
|
// cache lookup to get serviceUrl
|
||||||
serviceUrl, err = roundTripper.funcHandler.fmap.lookup(roundTripper.funcHandler.function)
|
serviceUrl, err = roundTripper.funcHandler.fmap.lookup(roundTripper.funcHandler.function)
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
|
|
||||||
#test:disabled
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
|
|
||||||
#test:disabled
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Disabling for https://github.com/fission/fission/issues/723 will enable after resolution/cluster upgrade
|
|
||||||
#test:disabled
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user