Function esp_idf_svc::hal::sys::httpd_req_async_handler_complete

source ·
pub unsafe extern "C" fn httpd_req_async_handler_complete(
    r: *mut httpd_req,
) -> i32
Expand description

@brief Mark an asynchronous request as completed. This will

  • free the request memory
  • relinquish ownership of the underlying socket, so it can be reused.
  • allow the http server to close our socket if needed (lru_purge_enable)

@note If async requests are not marked completed, eventually the server will no longer accept incoming connections. The server will log a “httpd_accept_conn: error in accept (23)” message if this happens.

@param[in] r The request to mark async work as completed

@return

  • ESP_OK : async request was marked completed