Fix http response body not closed correctly, return immediately on error (#210)
* Fix controller timer handler not return when error occurred * Fix controller not close http response correctly This PR aims to fix controller not close response correctly. Also, I’ve check all over the project there is no more resource leak issues exist after this patch. * Fix controller not return immediately when error occurred * Sort import
This commit is contained in:
committed by
Soam Vasani
parent
a2c7f5fb28
commit
cc66b245d0
Vendored
+2
-2
@@ -17,10 +17,10 @@ limitations under the License.
|
||||
package cache
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/fission/fission"
|
||||
)
|
||||
|
||||
|
||||
Vendored
+5
-3
@@ -16,9 +16,11 @@ limitations under the License.
|
||||
|
||||
package cache
|
||||
|
||||
import "testing"
|
||||
import "log"
|
||||
import "time"
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user