lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] httpd fails due to LWIP_HTTPD_REQ_BUFSIZE


From: address@hidden
Subject: [lwip-users] httpd fails due to LWIP_HTTPD_REQ_BUFSIZE
Date: Fri, 24 Apr 2020 19:02:45 +0000 (UTC)

I'm using lwip 2.0.3 with httpd and when submitting one of my webpage forms (using "type="submit"") the web browser complains lwip/httpd didn't send any data. 

Upon further investigation, the issue is in httpd.c:

#if LWIP_HTTPD_SUPPORT_REQUESTLIST
  clen = pbuf_clen(hs->req);
  if ((hs->req->tot_len <= LWIP_HTTPD_REQ_BUFSIZE) &&
    (clen <= LWIP_HTTPD_REQ_QUEUELEN)) {


hs->req->tot_len is longer than LWIP_HTTPD_REQ_BUFSIZE, which is 1023 because of:

#define LWIP_HTTPD_MAX_REQ_LENGTH           LWIP_MIN(1023, (LWIP_HTTPD_REQ_QUEUELEN * PBUF_POOL_BUFSIZE))


I tried increasing LWIP_HTTPD_MAX_REQ_LENGTH  to a higher value, but it caused an exception. What is the proper way to deal with this? 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]