Bläddra i källkod

fix: httpsrv库应该用tcpip_callback

Wendal Chen 2 år sedan
förälder
incheckning
6c8117519d
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      components/network/httpsrv/src/luat_httpsrv_lwip.c

+ 2 - 2
components/network/httpsrv/src/luat_httpsrv_lwip.c

@@ -194,9 +194,9 @@ static int luat_client_cb(lua_State* L, void* ptr) {
         memcpy(client->body, body, body_size);
     }
     client->code = code;
-    int ret = tcpip_try_callback(client_resp, client);
+    int ret = tcpip_callback(client_resp, client);
     if (ret) {
-        LLOGE("tcpip_try_callback %d", ret);
+        LLOGE("tcpip_callback %d", ret);
         tcp_abort(client->pcb);
         client_cleanup(client);
     }