Re: RFR(s): Improving performance of Windows socket connect on the loopback adapter

2020-07-15 Thread Bernd Eckenfels
Hello Nikola, Can you explain why timeouts play a role here at all? Normally when connecting to a non existing socket it should immediately respond with a TCP RST and that should not cause a retry or delay. Reducing the timeouts seems oddly specific, especially since your test numbers show, th

RFR(s): Improving performance of Windows socket connect on the loopback adapter

2020-07-15 Thread Nikola Grcevski
Hello net-dev, During a recent performance investigation of Gradle/Kotlin build daemon discovery, we found that Windows socket connect on a non-existent service is taking a lot longer than on Linux and MacOS. The socket timeout and retransmit defaults on Windows are quite long and it typically

Re: RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly

2020-07-15 Thread Vyom Tiwari
Hi Daniel, you are right, Alan is talking the same , in webrev that i have posted code is not properly formatted. In my local repo code is properly formatted. Thanks, Vyom On Wed, Jul 15, 2020 at 2:55 PM Daniel Fuchs wrote: > Hi Vyom, > > I don't know if that's what Alan is referring to but I

Re: RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly

2020-07-15 Thread Daniel Fuchs
Hi Vyom, I don't know if that's what Alan is referring to but I see this: bsd_close.c: missing space just after `if` extra space just before `timeout`: 475 if( timeout > 0) { linux_close.c: missing space just after `if`: 440 if(timeout > 0) { missing space just afte

Re: RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly

2020-07-15 Thread Vyom Tiwari
Hi Alan, thanks for the review, I will definitely fix any formatting issue before pushing the patch. My local repo code is properly formatted and i was suspecting that webrev is ignoring the space while generating the patch file that's why you are seeing the formatting issue. My local code is p

Re: RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly

2020-07-15 Thread Alan Bateman
On 14/07/2020 20:09, Daniel Fuchs wrote: On 12/07/2020 07:36, Vyom Tiwari wrote: Hi Patrick, Thanks for testing, Alan, Daniel can i get the finalĀ  review comment from you both ?. Hi Vyom, http://cr.openjdk.java.net/~vtewari/8237858/webrev1.0/index.html Vyom - will you fix the formattin