clang reformat

This commit is contained in:
Mathieu Carbou
2024-12-15 17:34:05 +01:00
parent 92cdaa16b4
commit c1e3bf0665

View File

@@ -357,7 +357,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
++_in_flight_credit; ++_in_flight_credit;
// for chunked responses ignore acks if there are no _in_flight_credits left // for chunked responses ignore acks if there are no _in_flight_credits left
if (_chunked && !_in_flight_credit){ if (_chunked && !_in_flight_credit) {
#ifdef ESP32 #ifdef ESP32
log_d("(chunk) out of in-flight credits"); log_d("(chunk) out of in-flight credits");
#endif #endif
@@ -389,8 +389,8 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
// but flood asynctcp's queue and fragment socket buffer space for large responses. // but flood asynctcp's queue and fragment socket buffer space for large responses.
// Let's ignore polled acks and acks in case when we have more in-flight data then the available socket buff space. // Let's ignore polled acks and acks in case when we have more in-flight data then the available socket buff space.
// That way we could balance on having half the buffer in-flight while another half is filling up, while minimizing events in asynctcp q // That way we could balance on having half the buffer in-flight while another half is filling up, while minimizing events in asynctcp q
if (_in_flight > space){ if (_in_flight > space) {
//log_d("defer user call %u/%u", _in_flight, space); // log_d("defer user call %u/%u", _in_flight, space);
// take the credit back since we are ignoring this ack and rely on other inflight data // take the credit back since we are ignoring this ack and rely on other inflight data
if (len) if (len)
--_in_flight_credit; --_in_flight_credit;