]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-connection - Avoid calling http_client_request_send_more()...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 29 Apr 2020 15:45:06 +0000 (17:45 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 5 May 2020 06:17:30 +0000 (06:17 +0000)
Get it called from http_client_connection_output() later.

src/lib-http/http-client-connection.c

index 0599742c71875dd751df7849f3bd6efc695e8001..cb8fad13dd0785ada47abf779c834d6e073c370e 100644 (file)
@@ -634,7 +634,8 @@ http_client_connection_continue_timeout(struct http_client_connection *conn)
        req = wait_reqs[wait_count-1];
 
        req->payload_sync_continue = TRUE;
-       (void)http_client_request_send_more(req, FALSE);
+       if (conn->conn.output != NULL)
+               o_stream_set_flush_pending(conn->conn.output, TRUE);
 }
 
 int http_client_connection_next_request(struct http_client_connection *conn)
@@ -1112,7 +1113,8 @@ static void http_client_connection_input(struct connection *_conn)
                                return;
                        }
 
-                       (void)http_client_request_send_more(req, FALSE);
+                       if (conn->conn.output != NULL)
+                               o_stream_set_flush_pending(conn->conn.output, TRUE);
                        return;
                } else if (response.status / 100 == 1) {
                        /* ignore other 1xx for now */