1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

New iris.WithKeepAlive(time.Duration) Configurator is added as a helper to enable TCP listener featured with keep-alive

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-01-31 21:24:15 +02:00
parent eec0cb8d51
commit 5994fd5d4e
9 changed files with 62 additions and 15 deletions

View File

@@ -893,6 +893,7 @@ func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error {
app.ConfigureHost(func(host *Supervisor) {
host.SocketSharding = app.config.SocketSharding
host.KeepAlive = app.config.KeepAlive
})
app.tryStartTunneling()