Unbreak MbedTLS (#3148), rollback debugging leftovers

This commit is contained in:
Sergio R. Caprile committed 2025-06-04 09:05:27 -03:00
1 parent 305d69ee36
commit 0459d9e106
4 files changed
+4 -2

No files matched your search

+1
View File
@@ -210,6 +210,7 @@ long mg_tls_send(struct mg_connection *c, const void *buf, size_t len) {
}
void mg_tls_flush(struct mg_connection *c) {
struct mg_tls *tls = (struct mg_tls *) c->tls;
if (c->is_tls_throttled) {
long n = mbedtls_ssl_write(&tls->ssl, tls->throttled_buf, tls->throttled_len);
c->is_tls_throttled = (n == MBEDTLS_ERR_SSL_WANT_READ || n == MBEDTLS_ERR_SSL_WANT_WRITE);