RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows
Chris Hegarty
chris.hegarty at oracle.com
Thu Jan 29 15:39:38 UTC 2015
On 29 Jan 2015, at 09:21, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 28/01/2015 21:40, Chris Hegarty wrote:
>> I’ll make the change, add a test, and then update the webrev.
>>
> On second thoughts, it shouldn't need to be changed because the child SOCKET is created before AcceptEx is used and so should already have the inherit flag set correctly.
Thanks for checking this.
> Has there been any consideration given to writing a test for this? I thought we had one or two tests for this already.
There are existing tests for client/connecting sockets, but none for accepted sockets.
The test, and check, for accepted sockets is quite different from that of the ones already checked in for client/connecting sockets, so I added a new test for this.
Updated webrev:
http://cr.openjdk.java.net/~chegar/8067105/webrev.01/webrev/
-Chris.
> -Alan
More information about the net-dev
mailing list