Commit 15858864 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Don't close the connection if we're in a known negotiation mode and we won't

send any data anyway. Probably the bug Tom Moers noticed.
parent f00f050d
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
@@ -230,6 +230,11 @@ static CURLcode perhapsrewind(struct connectdata *conn)

  bytessent = http->writebytecount;

  if(conn->bits.authneg)
    /* This is a state where we are known to be negotiating and we don't send
       any data then. */
    expectsend = 0;
  else {
    /* figure out how much data we are expected to send */
    switch(data->set.httpreq) {
    case HTTPREQ_POST:
@@ -246,6 +251,7 @@ static CURLcode perhapsrewind(struct connectdata *conn)
    default:
      break;
    }
  }

  conn->bits.rewindaftersend = FALSE; /* default */