Skip to content

Commit 79b6d99

Browse files
Add docs from gofiber/fiber@cdf4d24
1 parent 4c270e4 commit 79b6d99

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/core/api/fiber.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ app.Listen(":8080", fiber.ListenConfig{
120120
| <Reference id="ShutdownTimeout">ShutdownTimeout</Reference> | `time.Duration` | Specifies the maximum duration to wait for the server to gracefully shutdown. When the timeout is reached, the graceful shutdown process is interrupted and forcibly terminated, and the `context.DeadlineExceeded` error is passed to the `OnPostShutdown` callback. Set to 0 to disable the timeout and wait indefinitely. | `10 * time.Second` |
121121
| <Reference id="listeneraddrfunc">ListenerAddrFunc</Reference> | `func(addr net.Addr)` | Allows accessing and customizing `net.Listener`. | `nil` |
122122
| <Reference id="listenernetwork">ListenerNetwork</Reference> | `string` | Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "unix" (Unix Domain Sockets). WARNING: When prefork is set to true, only "tcp4" and "tcp6" can be chosen. | `tcp4` |
123+
| <Reference id="preforkrecoverinterval">PreforkRecoverInterval</Reference> | `time.Duration` | Delays the respawn of a crashed child process by this duration. Only applies when prefork is enabled. | `0` (respawn immediately) |
123124
| <Reference id="preforkrecoverthreshold">PreforkRecoverThreshold</Reference> | `int` | Defines the maximum number of child process restarts after crashes before the prefork master exits with an error. Only applies when prefork is enabled. | `max(1, runtime.GOMAXPROCS(0) / 2)` |
125+
| <Reference id="preforkshutdowngraceperiod">PreforkShutdownGracePeriod</Reference> | `time.Duration` | How long the prefork master waits for child processes to exit after SIGTERM before sending SIGKILL during shutdown. On Windows children are always killed immediately. Only applies when prefork is enabled. | `5 * time.Second` |
124126
| <Reference id="preforklogger">PreforkLogger</Reference> | `PreforkLogger` | Sets a custom logger for the prefork process manager. Only applies when prefork is enabled. | Fiber logger |
125127
| <Reference id="unixsocketfilemode">UnixSocketFileMode</Reference> | `os.FileMode` | FileMode to set for Unix Domain Socket (ListenerNetwork must be "unix") | `0770` |
126128
| <Reference id="tlsconfigfunc">TLSConfigFunc</Reference> | `func(tlsConfig *tls.Config)` | Allows customizing `tls.Config` as you want. Ignored when `TLSConfig` is set. | `nil` |

0 commit comments

Comments
 (0)