Skip to content

Commit

Permalink
Increase timeout deadline to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestKz committed Jan 12, 2024
1 parent 90909a7 commit 5fe48de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/IcepeakProtocolMultiSub.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The URL path:

The authorisation mechanism is a "subscription deadline timout": Initial websocket connection does not need authorisation, but if the client does not subscribe to a client before the server-configured timeout, then the connection will be closed un-politely, i.e the server will not send a WS close control message.

Timeout is set by the `--first-subscription-deadline-timeout` flag, the input is in terms of microseconds, the default value is `100000` (0.1 seconds).
Timeout is set by the `--first-subscription-deadline-timeout` flag, the input is in terms of microseconds, the default value is `1000000` (1 second).


# Subscribing, Unsubscribing & Updates
Expand Down
2 changes: 1 addition & 1 deletion server/src/Icepeak/Server/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ configParser environment = Config
<*> option auto
(long "first-subscription-deadline-timeout" <>
metavar "MICROSECONDS" <>
value 100_000 <> -- 0.1 seconds
value 1_000_000 <> -- 1 second
help "The amount of time in microseconds to wait for a subscription request before closing the connection. This is used for the multiple subscription protocol. The initial connection to the server is not behind authorisation, and hence this timeout mechanism is used to disconnect unwanted connections.")

where
Expand Down

0 comments on commit 5fe48de

Please sign in to comment.