Skip to content

Commit

Permalink
docs: keep alive (#868)
Browse files Browse the repository at this point in the history
* docs: keep alive

Signed-off-by: Gaius <[email protected]>

* feat: add transport log

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 3, 2021
1 parent 6bbd7e6 commit 368c38d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/daemon/peer/piece_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ func WithTransportOption(opt *config.TransportOption) func(*pieceManager) {
if opt.TLSHandshakeTimeout > 0 {
defaultTransport.(*http.Transport).TLSHandshakeTimeout = opt.TLSHandshakeTimeout
}

logger.Infof("default transport: %#v", defaultTransport)
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/en/deployment/configuration/dfget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ download:
# dial timeout
dialTimeout: 2s
# keep alive
keepAlive: true
keepAlive: 30s
# same with http.Transport.MaxIdleConns
maxIdleConns: 100
# same with http.Transport.IdleConnTimeout
Expand Down

0 comments on commit 368c38d

Please sign in to comment.