Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when setting UserTimeout with setSocketOption #571

Closed
pnlph opened this issue Oct 16, 2023 · 2 comments
Closed

Exception when setting UserTimeout with setSocketOption #571

pnlph opened this issue Oct 16, 2023 · 2 comments

Comments

@pnlph
Copy link

pnlph commented Oct 16, 2023

While using the network-3.1.4.0 library in OSX 13.5.2, I encountered an exception when attempting to set the UserTimeout socket option using the setSocketOption function. Here's the relevant code snippet:

S.setSocketOption s S.UserTimeout 1000

And here's the exception message:

*** Exception: Network.Socket.setSockOpt: invalid argument (Invalid argument)

I am unsure if the exception is provoked by a limitation imposed by the operating system or the underlying network subsystem or something else. The error message lacks specificity which makes it difficult to diagnose the problem. Is it possible to deliver more concretion in the error message to help identify the root cause?

@kazu-yamamoto
Copy link
Collaborator

It seems to me that TCP_USER_TIMEOUT (UserTimeout) is specific to Linux.

More convenient error handling should be provided as discussed in #151.

@kazu-yamamoto
Copy link
Collaborator

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants