wasm-micro-runtime/core/iwasm/libraries/lib-socket
Marcin Kolny 6ed4c9c908
Increase default native stack size (#2332)
Calling `__wasi_sock_addr_resolve` syscall causes native stack overflow.
Given this is a standard function available in WAMR, we should have at least
the default stack size large enough to handle this case.

The socket tests were updated so they also run in separate thread, but
the simple retro program is:

```C
void *th(void *p)
{
    struct addrinfo *res;
    getaddrinfo("amazon.com", NULL, NULL, &res);
    return NULL;
}

int main(int argc, char **argv)
{
    pthread_t pt;
    pthread_create(&pt, NULL, th, NULL);
    pthread_join(pt, NULL);
    return 0;
}
```
2023-07-03 21:02:10 +08:00
..
inc Wrap wasi_socket_ext api with extern "C" (#1575) 2022-10-12 15:51:07 +08:00
src/wasi Fix build socket api error (#1610) 2022-10-17 15:54:03 +08:00
test Increase default native stack size (#2332) 2023-07-03 21:02:10 +08:00
lib_socket_wasi.cmake Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +08:00