Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-56

socket fd <=0 should be <0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.3
    • None
    • None
    • None

    Description

      > 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?
      >

      Attachments

        Activity

          People

            kbanker Kyle Banker
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: