Skip to content

Commit

Permalink
Merge pull request #599 from christopherm99/mac-timeout
Browse files Browse the repository at this point in the history
Fix `UserTimeout` on macos
  • Loading branch information
kazu-yamamoto authored Jan 14, 2025
2 parents ca0a569 + 9a29dde commit 412cb41
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 412cb41

Please sign in to comment.