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

SocketException error codes are not OS specific #30

Open
nfp0 opened this issue Nov 17, 2023 · 0 comments
Open

SocketException error codes are not OS specific #30

nfp0 opened this issue Nov 17, 2023 · 0 comments

Comments

@nfp0
Copy link

nfp0 commented Nov 17, 2023

I was wondering why I was getting nonsensical SocketException error messages and I traced it back to his line:

https://github.com/mz-automation/lib60870.NET/blob/d291d38961816f8a56e757f7ff8e62e9482245f3/lib60870/CS104/Connection.cs#L1490C40-L1490C40

throw new SocketException(87); // wrong argument

The error code is hardcoded even though it is different among OSs.
Error 87 is "Too many users" on Linux and "The parameter is incorrect." on Windows.

I was wondering why I was getting "Too many users" on Linux even though it was my 1st connection attempt.

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

1 participant