You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ray Chen (JIRA)" <ji...@apache.org> on 2009/10/28 07:44:59 UTC
[jira] Updated: (HARMONY-6364) [classlib][luni]Set port reuse
option not supported which leads to bind reuse address failure
[ https://issues.apache.org/jira/browse/HARMONY-6364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Chen updated HARMONY-6364:
------------------------------
Description:
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?
was:
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?
> [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.