Having problems understanding async_connect_send and async_connect_connected in lib/async_req/async_soc.c

Ralph Boehme rb at sernet.de
Tue Oct 20 19:59:11 UTC 2015


On Tue, Oct 20, 2015 at 10:49:22AM -0700, Jeremy Allison wrote:
> On Tue, Oct 20, 2015 at 05:44:30PM +0200, Ralph Boehme wrote:
> > 
> > couldn't resist, played some more with this. Turns out Solaris *will*
> > return EISCONN when connect() is called a second time, so imo we have
> > a bug:
> > 
> > <https://bugzilla.samba.org/show_bug.cgi?id=11564>
> > 
> > Patch attached. I've also crafted a test, which at least ensures basic
> > functionality of async_connect_send() while not really able to detect
> > this corner case. Not sure if we want the test in master.
> 
> Yeah, I think we do !
> 
> However the test has a problem (in theory if not in practice :-).
> 
> port must be uint16_t, and should go up to UINT16_MAX,
> not INT32_MAX.
> 
> > Please review carefully and push if ok. Thanks!
> 
> Modified version attached. Push if you're happy !

pushed, thanks!

-slow

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de



More information about the samba-technical mailing list