[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #64458] When tcp_err() is invoked, tcp_pcb is freed bu
From: |
Hungyin Chang |
Subject: |
[lwip-devel] [bug #64458] When tcp_err() is invoked, tcp_pcb is freed but httpd_post_finished() is not called by httpd.c |
Date: |
Sun, 23 Jul 2023 07:18:50 -0400 (EDT) |
Follow-up Comment #1, bug #64458 (project lwip):
/* bug #64458: When tcp_err() is invoked, tcp_pcb is freed but
httpd_post_finished() is not called by httpd.c */
/* Workaround: Copy the following code to the end of "static void
http_state_eof(struct http_state *hs)" */
#if LWIP_HTTPD_SUPPORT_POST
if ((hs->post_content_len_left != 0)
#if LWIP_HTTPD_POST_MANUAL_WND
|| ((hs->no_auto_wnd != 0) && (hs->unrecved_bytes != 0))
#endif /* LWIP_HTTPD_POST_MANUAL_WND */
) {
/* make sure the post code knows that the connection is closed */
http_uri_buf[0] = 0;
httpd_post_finished(hs, http_uri_buf, LWIP_HTTPD_URI_BUF_LEN);
}
#endif /* LWIP_HTTPD_SUPPORT_POST*/
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?64458>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/