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

Socket option Dont Fragment not supported on MacOS #91

Open
roordaj opened this issue Nov 25, 2021 · 1 comment
Open

Socket option Dont Fragment not supported on MacOS #91

roordaj opened this issue Nov 25, 2021 · 1 comment

Comments

@roordaj
Copy link

roordaj commented Nov 25, 2021

When using the library on MacOS, I get the following error:

Unhandled exception. System.Net.Sockets.SocketException (45): Operation not supported
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue, Boolean silent)
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue)
at System.Net.Sockets.Socket.set_DontFragment(Boolean value)
at System.Net.Sockets.UdpClient.set_DontFragment(Boolean value)
at System.IO.BACnet.BacnetIpUdpProtocolTransport.Open()
at System.IO.BACnet.BacnetIpUdpProtocolTransport.Start()
at System.IO.BACnet.BacnetClient.Start()

This is because the MacOS socket does not support that option. A solution might be to omit the setting when not specified explicitly in the constructor.

@YarekTyshchenko
Copy link
Contributor

YarekTyshchenko commented Feb 9, 2023

Should be fixed by #116 Can you check with the latest version of the lib?
Duplicate of #115

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