ustream-ssl: increase number of read buffers
authorFelix Fietkau <nbd@nbd.name>
Thu, 18 Apr 2024 12:55:19 +0000 (14:55 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 18 Apr 2024 12:55:20 +0000 (14:55 +0200)
Fix dealing with larger TLS transactions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
ustream-ssl.c

index 4af5a4408f14814ac0e6a8104827eaf90d2ca755..d3048ca2ded69f4ced3a0ddd778b1e6e923fdd20 100644 (file)
@@ -208,6 +208,7 @@ static int _ustream_ssl_init(struct ustream_ssl *us, struct ustream *conn, struc
        if (!us->ssl)
                return -ENOMEM;
 
+       conn->r.max_buffers = 4;
        conn->next = &us->stream;
        ustream_set_io(ctx, us->ssl, conn);
        ustream_ssl_stream_init(us);