aboutsummaryrefslogtreecommitdiff
path: root/src/deps/libuwsockets.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-05fix(serve): fix `close_connection` behaviour in `endWithoutBody` (#6315)Gravatar Ai Hoshino 1-2/+27
Close: #6031
2023-09-29fix(runtime): followup for `server.requestIP` (#6185)Gravatar dave caruso 1-11/+14
* fix(runtime): followup for `server.requestIP` * oops * yeah * sure * Update src/deps/libuwsockets.cpp * Update Dockerfile * lol --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29feat(runtime): implement `server.requestIp` + node:http `socket.address()` ↵Gravatar dave caruso 1-2/+26
(#6165) * [server] requestIp and AnyRequestContext Changed Request.uws_request to the new AnyRequestContext. This allows grabbing the IP from a Request. Unfinished. * [server] basic `requestIp` implementation Currently using uws's requestIpAsText, which always returns a ipv6 string. We should return a `SocketAddress` object to the user instead, which will contain the formatted address string and what type it is. We'll have to use requestIpAsBinary and parse that ourselves. * TypeScript docs, use `bun.String`, return `undefined` instead of `null` if we can't get the ip. * binary address formatting * uws getRemoteAddress binding * remove dead code * working * final touches:sparkles: * I will abide by the results of this poll. --------- Co-authored-by: Parzival-3141 <29632054+Parzival-3141@users.noreply.github.com>
2023-09-26fix server end of stream, fix fetch not streaming without content-length or ↵Gravatar Ciro Spaciari 1-2/+2
chunked encoding, fix case when stream do not return a promise on pull (#6086)
2023-08-28Bring uSockets & uWebSockets forks into Bun's repository (#4372)Gravatar Jarred Sumner 1-3/+3
* Move uWebSockets and uSockets forks into Bun's repository * Update Makefile * Update settings.json * Update libuwsockets.cpp * Remove backends we won't be using * Update bindings.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-31Make uploading files with `fetch()`fast (#3125)Gravatar Jarred Sumner 1-0/+5
* Make file uploads fast * Add benchmark * Update README.md * defaults * print * prettier * smaller * fix(path) fix parse behavior (#3134) * Add macro docs (#3139) * Add macro doc * Updates * Tweaks * Update doc * Update macro serialization doc * Update macro doc * `--no-macros` flag, disable macros in node_modules * invert base/filename internally (#3141) * always false * Fix broken test * Add a test sendfile() test with large file --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-05-21fix(tls.connect) fix SNI on tls sockets and also servername (mongodb) (#2934)Gravatar Ciro Spaciari 1-8/+3
* fixes SNI on tls sockets and also servername * 💅 * 💅 * add support for https and wss * fix bun types * support Bun.file on ca, key and cert * 💅 * add setTimeout (makes fastify run) * fix httpVersion * fix WebSocketServer and add listen event * fix ws exports and http listening * fix default import * bump uws * add nodebuffer compatibility * fix drain and allow more passing tests to run * fix enqueud messages * default to arraybuffer * fix constructor binaryType * fmt * fixup * skip some tests * skip more * skip fault tests * reuse encoder instance * fix handshake WS Client * temporary revert handshake fix * fix handshake * disable all socket.io test temp * fixup * add back socket.io tests * use node_fs to read cert, ca and key on server.zig * throw the error returned by NodeFS * 💅
2023-05-08added some improvements on server (#2803)Gravatar Ciro Spaciari 1-4/+12
* added some improvements on server * undo unintended change * clean data handler before end calls * refactor * make ctx.resp nullable --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-03-29Fixes #2499 (#2501)Gravatar Jarred Sumner 1-1/+19
* Fixes #2499 * This needs to be quoted --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-06fix(uWS:capi) uws_req_set_yield typo and uws_res_override_write_offset (#1996)Gravatar Ciro Spaciari 1-3/+4
2023-01-12Fix https websocketsGravatar Jarred Sumner 1-0/+12
2023-01-12Upgrade uSocketsGravatar Jarred Sumner 1-0/+14
2022-10-30Updating libuwebsockets C API (#1423)Gravatar Ciro Spaciari 1-999/+1402
2022-10-18build faiiluresGravatar Jarred Sumner 1-6/+6
2022-10-16Fix WebSocket server sending invalid data at the endGravatar Jarred Sumner 1-8/+10
2022-10-15WebSocket Server supportGravatar Jarred Sumner 1-12/+17
2022-10-11remove config structGravatar Jarred Sumner 1-10/+7
2022-10-11Work around Zig C ABI bug on LinuxGravatar Jarred Sumner 1-6/+4
2022-10-09maybe workaround C ABI issue on linux amd64Gravatar Jarred Sumner 1-1/+2
2022-10-06Fix linux amd64 crashGravatar Jarred Sumner 1-2/+5
2022-09-29Lazy URL, more explicit close()Gravatar Jarred Sumner 1-3/+15
2022-07-04[internal] Fix duplicate symbol issueGravatar Jarred Sumner 1-3/+0
2022-07-01[Bun.serve] Add explicit function for clearing the abort callbackGravatar Jarred Sumner 1-5/+17
2022-06-27Fix data corruption bug in HTTP serverGravatar Jarred Sumner 1-2/+12
2022-04-12Make sendfile more reliableGravatar Jarred Sumner 1-11/+34
2022-04-05tweak some flagsGravatar Jarred Sumner 1-2/+1
2022-04-04Remove unused functionGravatar Jarred Sumner 1-29/+0
2022-04-04fix httpsGravatar Jarred Sumner 1-8/+7
2022-03-23handle bodies of 0 length betterGravatar Jarred Sumner 1-2/+11
2022-03-23Support `Request.headers` and `Request.url` in http serverGravatar Jarred Sumner 1-3/+34
2022-03-21sendfile worksGravatar Jarred Sumner 1-0/+21
2022-03-21[bun.js] 2/? Implement `Response.file`, sendfile editionGravatar Jarred Sumner 1-0/+20
2022-03-20microptimizeGravatar Jarred Sumner 1-0/+30
2022-03-20the events, they loopGravatar Jarred Sumner 1-0/+984