Skip to content

Commit

Permalink
add TCP_CONNECTIONTIMEOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherm99 committed Jan 13, 2025
1 parent ca0a569 commit 9a29dde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Network/Socket/Options.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ pattern NoDelay = SockOpt (-1) (-1)
pattern UserTimeout :: SocketOption
#ifdef TCP_USER_TIMEOUT
pattern UserTimeout = SockOpt (#const IPPROTO_TCP) (#const TCP_USER_TIMEOUT)
#elif defined(TCP_CONNECTIONTIMEOUT)
pattern UserTimeout = SockOpt (#const IPPROTO_TCP) (#const TCP_CONNECTIONTIMEOUT)
#else
pattern UserTimeout = SockOpt (-1) (-1)
#endif
Expand Down

0 comments on commit 9a29dde

Please sign in to comment.