uSockets
uSockets copied to clipboard
Miniscule cross-platform eventing, networking & crypto for async applications
Please see the example [log](https://pkg-status.freebsd.org/foul2/data/main-powerpc64le-default/pe72d10c28234_s4347ef6050/logs/usockets-0.8.7.log).
All these errors are due to the obvious type mismatch in the code: ``` cd /usr/ports/net/usockets/work/uSockets-0.8.7 && c++ -o test tests/sni_test.c /usr/ports/net/usockets/work/stage/usr/local/lib/libuSockets.so && ./test c++: warning: treating 'c' input as...
``` struct us_poll_t *p = us_create_poll(loop, fallthrough, sizeof(struct us_internal_callback_t) + ext_size); int timerfd = timerfd_create(CLOCK_REALTIME, TFD_NONBLOCK | TFD_CLOEXEC); if (timerfd == -1) { return NULL; } ``` Leaks p if...
From https://github.com/oven-sh/bun/issues/5315 ### Reproduce 1. Edit `examples/http_server.c` https://github.com/uNetworking/uSockets/blob/ac4e90e4d2ad674db903accc5f3abc408a6bc5d8/examples/http_server.c#L123 change to bind `localhost:3000` ```C struct us_listen_socket_t *listen_socket = us_socket_context_listen(SSL, http_context, "localhost", 3000, 0, sizeof(struct http_socket)); ``` 2. Create a container using...
Can we configure the timeout of us_socket_context_connect? Testing the code I can see it is 20s but not how to configure it or where it comes from. It is to...
https://github.com/uNetworking/uSockets/blob/ac4e90e4d2ad674db903accc5f3abc408a6bc5d8/src/bsd.c#L254 Error initializing structure msg_hdr, here you need to fix &b->addr[n]. Otherwise, when reading multiple packets from the buffer, they will always have the same sender address, even if these...
Hi, Is there any plan to update BoringSSL to the latest version? It has been last updated 2 years ago
The compilation failed when trying to compile in WSL env. > # Create a static library (try windows, then unix) > lib.exe /out:uSockets.a *.o || ar rvs uSockets.a *.o >...
Many protocols support upgrading after initial data has been sent, for example SMTP which will upgrade after a `STARTTLS` command Allow an option to upgrade an unencrypted socket to an...
This pull request adds the ability to reload `us_socket_context_options_t` for a socket context via ```c int us_update_socket_context(int ssl, struct us_socket_context_t* ctx, struct us_socket_context_options_t* options); ``` rather than by workarounds like...