Menu

#216 Ns_ConnSend() doesn't return error when NsSockSend() fails

aolserver_v40
closed-fixed
API: C (24)
8
2004-09-17
2004-09-16
No

Behavior of Ns_ConnSend() is correct in AOLserver 3.x
but was "broken" in 4.0.x and 4.1.x.

Function documentation in nsd/connio.c indicates that
Ns_ConnSend() will return -1 for error on first send,
but it ONLY returns -1 if connPtr->sockPtr == NULL. In
the case where NsSockSend() fails and returns -1, the
function returns nwrote which will equal 0.

Discussion

  • Dossy Shiobara

    Dossy Shiobara - 2004-09-17

    Logged In: YES
    user_id=21885

    Patches against HEAD (4.1.0a) and aolserver_v40_bp (4.0.9a)
    attached.

     
  • Dossy Shiobara

    Dossy Shiobara - 2004-09-17

    patch against HEAD for 4.1.0a - 20040917

     
  • Dossy Shiobara

    Dossy Shiobara - 2004-09-17

    patch against aolserver_v40_bp branch for 4.0.9a - 20040917

     
  • Dossy Shiobara

    Dossy Shiobara - 2004-09-17
    • status: open --> closed-fixed
     

Log in to post a comment.