#30 Connection fails in 2.10.0

closed-fixed
None
5
2011-01-03
2011-01-03
Anonymous
No

Running under PC-BSD 8.1, any attempt to connect to a server fails. The problem is that errno is not inspected properly following the connection attempt at line 454.

Line 456 should read:
if((ret < 0) && (errno != EISCONN)){

Additionally, the variable "ret" is erroneously inspected instead of errno on line 457.
Line 457 should read:
if (errno == EALREADY || errno == EINPROGRESS) {

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-01-03

    I forgot to mention that those line numbers refer to net.c, though I suspect that would have been obvious.

     
  • Eduardo M Kalinowski

    I've applied the suggested changes, revision 1136.

     
  • Eduardo M Kalinowski

    • status: open --> closed-fixed
     
  • Eduardo M Kalinowski

    • assigned_to: nobody --> ekalin
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks