Re: Accessing socket APIs soon after accept

2015-02-27 Thread John Baldwin
On Friday, February 27, 2015 10:32:17 AM Adrian Chadd wrote: > On 27 February 2015 at 10:07, John Baldwin wrote: > > On Friday, February 27, 2015 10:03:33 AM Adrian Chadd wrote: > >> Is this also a bug on -9 and -10? > > > > Yes. I may merge just the tcp_syncache.c part of this change down to >

Re: Accessing socket APIs soon after accept

2015-02-27 Thread Adrian Chadd
On 27 February 2015 at 10:07, John Baldwin wrote: > On Friday, February 27, 2015 10:03:33 AM Adrian Chadd wrote: >> Is this also a bug on -9 and -10? > > Yes. I may merge just the tcp_syncache.c part of this change down to stable > branches. Cool, thanks. Placing half-completed connections on t

Re: Accessing socket APIs soon after accept

2015-02-27 Thread John Baldwin
t; Thanks, John. That's almost exactly the approach we were considering. > > > > - Ryan Q > > > > From: John Baldwin > > Sent: Friday, February 27, 2015 10:20 AM > > To: freebsd-net@freebsd.org > > Cc: Quattlebaum

Re: Accessing socket APIs soon after accept

2015-02-27 Thread Adrian Chadd
27, 2015 10:20 AM > To: freebsd-net@freebsd.org > Cc: Quattlebaum, Ryan; Adrian Chadd > Subject: Re: Accessing socket APIs soon after accept > > On Friday, January 16, 2015 05:07:28 PM Quattlebaum, Ryan wrote: >> Hi, Adrian. Thanks for taking a look at this. >> >> We&

RE: Accessing socket APIs soon after accept

2015-02-27 Thread Quattlebaum, Ryan
Thanks, John. That's almost exactly the approach we were considering. - Ryan Q From: John Baldwin Sent: Friday, February 27, 2015 10:20 AM To: freebsd-net@freebsd.org Cc: Quattlebaum, Ryan; Adrian Chadd Subject: Re: Accessing socket APIs soon after a

Re: Accessing socket APIs soon after accept

2015-02-27 Thread John Baldwin
On Friday, January 16, 2015 05:07:28 PM Quattlebaum, Ryan wrote: > Hi, Adrian. Thanks for taking a look at this. > > We're using FreeBSD 8.2 and httpd-2.4.10 with arp-1.5.1 and apr-util-1.5.4. > > The problem we're seeing is pretty intermittent, so I hope this test case > can

RE: Accessing socket APIs soon after accept

2015-01-16 Thread Quattlebaum, Ryan
2015 1:39 PM To: Quattlebaum, Ryan Cc: freebsd-net@freebsd.org Subject: Re: Accessing socket APIs soon after accept Oh, I've no idea about -8. If that's what the code does then yeah, that seems wrong. Is it like that in -10 or -11 ? -adrian On 16 January 2015 at 09:07, Quattlebaum, Ryan wr

Re: Accessing socket APIs soon after accept

2015-01-16 Thread Adrian Chadd
ne configuring? > > - Ryan Quattlebaum > > From: adrian.ch...@gmail.com on behalf of Adrian > Chadd > Sent: Thursday, January 15, 2015 1:20 PM > To: Quattlebaum, Ryan > Cc: freebsd-net@freebsd.org > Subject: Re: Accessing socket

RE: Accessing socket APIs soon after accept

2015-01-16 Thread Quattlebaum, Ryan
syncache code isn't done configuring? - Ryan Quattlebaum From: adrian.ch...@gmail.com on behalf of Adrian Chadd Sent: Thursday, January 15, 2015 1:20 PM To: Quattlebaum, Ryan Cc: freebsd-net@freebsd.org Subject: Re: Accessing socket APIs soon after accep

Re: Accessing socket APIs soon after accept

2015-01-15 Thread Adrian Chadd
On 15 January 2015 at 08:29, Quattlebaum, Ryan wrote: > Is there anything preventing applications from calling functions e.g. > getsockname() right after accept()? Or is there a recommended pattern that > applications should use to ensure they get correct data? We recently upgraded > to a new v