RE: RFR 8085875/10, java/net/DatagramSocket/PortUnreachable.java fails intermittently: Address already in use

2017-09-07 Thread Langer, Christoph
Hi Mark, I overlooked that, you are completely right, recreateServerSocket is fine then. Best regards Christoph > -Original Message- > From: Mark Sheppard [mailto:mark.shepp...@oracle.com] > Sent: Donnerstag, 7. September 2017 13:07 > To: Langer, Christoph ;

Re: RFR 8085875/10, java/net/DatagramSocket/PortUnreachable.java fails intermittently: Address already in use

2017-09-07 Thread Mark Sheppard
Hi Christoph,    looking at the logic of the test, it is seen that a "server socket" is created in the execute method, and is then closed, and a bunch of datagrams sent to it.  Then in the serverSend method an attempt is made to (re-)create a DatagramSocket using the same port as the original

RE: RFR 8085875/10, java/net/DatagramSocket/PortUnreachable.java fails intermittently: Address already in use

2017-09-07 Thread Langer, Christoph
Hi Felix, this looks good in general. I would, however, suggest to rename the method 'recreateServerSocket' into ' createServerSocket' as the former name suggests that something which existed once was recreated. But in this case the socket is simply created with a few retries when exceptions