You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2017/10/19 22:41:00 UTC

[jira] [Commented] (PROTON-1644) [FreeBSD] Scheme for reusing ports in testing does not work for FreeBSD

    [ https://issues.apache.org/jira/browse/PROTON-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16211877#comment-16211877 ] 

Andrew Stitcher commented on PROTON-1644:
-----------------------------------------

SO_REUSEADDR doesn't mean the same on BSDs.

You might think to use SO_REUSEPORT and this could be made to work. However all the sockets need to be opened with this option, not just the first one, so this particular version of the scheme can't work - there would have to be some way for the test code to open the socket and pass it into the proactor.

Actually this is a functionality that is needed for some sorts of servers anyway, so we should probably figure out a way to do this with our API.

> [FreeBSD] Scheme for reusing ports in testing does not work for FreeBSD
> -----------------------------------------------------------------------
>
>                 Key: PROTON-1644
>                 URL: https://issues.apache.org/jira/browse/PROTON-1644
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c, ruby-binding
>    Affects Versions: proton-c-0.18.0
>         Environment: FreeBSD 10.3-RELEASE-p20
>            Reporter: Andrew Stitcher
>            Assignee: Alan Conway
>
> The scheme for picking ports using SO_REUSEPORT does not seem to work on FreeBSD producing a bunch of errors like
> {noformat}
> listen error: proton:io: address already in use - listening on localhost:51439
> broker shutdown: proton:io: address already in use - listening on localhost:51439
> {noformat}
> This happens in the tests:
> - 12:ruby-test-container
> - 31:c-proactor-tests
> - 34:cpp-example-container
> - 35:cpp-example-container-ssl



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org