socket fd <=0 should be <0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > hi
      > I found a problem in C driver.
      >
      > 122     conn->sock = socket( AF_INET, SOCK_STREAM, 0 );
      > 123     if ( conn->sock <= 0 )

      { > 124         mongo_close_socket( conn->sock ); > 125         return mongo_conn_no_socket; > 126     }

      >
      > In this connection function, can the socket return descriptor be zero?
      >

            Assignee:
            Kyle Banker (Inactive)
            Reporter:
            Kyle Banker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: