mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy) as requested by almost everyone. https://github.com/kataras/iris/issues/969
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
// Client returns a new http.Client using
|
||||
// the "timeout" for open connection and read-write operations.
|
||||
// the "timeout" for open connection.
|
||||
func Client(timeout time.Duration) *http.Client {
|
||||
transport := http.Transport{
|
||||
Dial: func(network string, addr string) (net.Conn, error) {
|
||||
@@ -18,9 +18,6 @@ func Client(timeout time.Duration) *http.Client {
|
||||
golog.Debugf("%v", err)
|
||||
return nil, err
|
||||
}
|
||||
if err = conn.SetDeadline(time.Now().Add(timeout)); err != nil {
|
||||
golog.Debugf("%v", err)
|
||||
}
|
||||
return conn, err
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user