Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SocketException error codes are not OS specific #30

@nfp0

Description

@nfp0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions