possible be a bug for _mongoc_socket_wait(..., expire_at = -1)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.15.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Per design,   the -1 means block all the time.   but during the implementation,  it doesn't check it in MONGOC_ERROR_IS_AGAIN case, see https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/src/mongoc/mongoc-socket.c#L222.
       
      should we change it to  "OPERATION_EXPIRED(expire_at)"?  
       
       
      Thanks

              Assignee:
              Haris Sheikh (Inactive)
              Reporter:
              zhihui fan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: