harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Chen (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6364) [classlib][luni]Set port reuse option not supported which leads to bind reuse address failure
Date Wed, 28 Oct 2009 06:42:59 GMT
[classlib][luni]Set port reuse option not supported which leads to bind reuse address failure
---------------------------------------------------------------------------------------------

                 Key: HARMONY-6364
                 URL: https://issues.apache.org/jira/browse/HARMONY-6364
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: z/OS
            Reporter: Ray Chen


Hi all,

org.apache.harmony.luni.tests.java.net.DatagramSocketTest.test_setReuseAddressZ failed on
z/OS.

Failed at line 1616 when excute the statement "theSocket2.bind(theAddress);"

In native code the bind() function got a EADDRINUSE error.

After looking into the problem, I found that in the fucntion setReuseAddrAndReusePort() of
modules\luni\src\main\native\luni\shared\socket.c does NOT throw a exception if the REUSEPORT
option is NOT supported.
It works well on windows and linux, but seems not well on z/OS, the whole situation can be
summarized in following matrix:

                     REUSEPORT        bind()
z/OS            not supported          failed
windows      not supported          success
linux             supported                success

Should it throw an exception if REUSEPORT not supported on z/OS?
Any comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message