fix: harden wasm w7 entrypoint paths

This commit is contained in:
udo
2026-06-13 22:08:52 +00:00
parent d6421cb8f3
commit af6500d134
6 changed files with 71 additions and 15 deletions
+8 -1
View File
@@ -44,12 +44,19 @@ RENDER(Request& context)
}
pid_t custom_http_pid = server_start_http("site-tests-http", "19091", "servers/http.uce", "named");
usleep(200000);
usleep(500000);
u64 custom_http_sockfd = socket_connect("127.0.0.1", 19091);
if(custom_http_sockfd != 0)
{
bool write_ok = socket_write(custom_http_sockfd, "GET /custom-test?alpha=1 HTTP/1.0\r\nHost: localhost\r\n\r\n");
String response = socket_read(custom_http_sockfd, 4096, 2);
for(u64 i = 0; i < 3 && response.find("custom-http-named") == String::npos; i++)
{
String chunk = socket_read(custom_http_sockfd, 4096, 1);
if(chunk == "")
break;
response += chunk;
}
socket_close(custom_http_sockfd);
bool stopped = server_stop("site-tests-http");
usleep(200000);