Found the problem - our stack uses a 0 value for the timeout as
nothing has been set at the accept() call, and uses the default. You
need to set the socket options on the server side AFTER the accept()
call, and then it works as expected. The reason that it worked with a
timeout of 1, though, is that it is inherited as we overload the 0 value
(as it were).
You can also see this behaviour if you getsockopts() after the accept() (l_linger will be 120).
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
Please contact us with your questions or concerns.
BlackBerry uses cookies to help make our website better. Some of the cookies are necessary for the proper functioning of the website while others, non-essential cookies, are used to better understand how you interact with our website and to make it better.