- 22 Jan, 2019 3 commits
-
-
Kenton Varda authored
Fix HttpClient-from-HttpService wrapper prematurely cancelling service promise.
-
Kenton Varda authored
This reverts the core change from: https://github.com/capnproto/capnproto/commit/6e4c5ce3c9f31a5e79b50cd9eaae6d03106edf98 There are a few reasons to believe that change was wrong: - It meant that a pump would always throw and catch a DISCONNECTED exception, which violates the rule that we don't throw exceptions in "normal" operation. - It could lead to trouble when combined with the previous commit, which could delay WebSocket disconnect until the service "completes" -- which would lead to a hang. The commit message where I introduced this said something about bad behavior on OSX. We should address that directly, if it is still a problem.
-
Kenton Varda authored
The client app will typically discard the returned response body upon reading EOF. However, the server app may not actually be "done" with the service callback yet at this point. Usually it completes very soon after, but it may need another turn or two of the event loop. If the client discards the response body stream, the server-side promise is discarded, cancelling whatever was left. This is awkward, so we should instead delay the client from seeing EOF until the server has actually finished up.
-
- 12 Dec, 2018 1 commit
-
-
Kenton Varda authored
Log more info in VectorOutputStream::write() KJ_REQUIRE
-
- 11 Dec, 2018 6 commits
-
-
Ingvar Stepanyan authored
-
Harris Hancock authored
-
Kenton Varda authored
This seems to be the case, for example, on WSL.
-
Kenton Varda authored
Detect EOF in copyChunk
-
Harris Hancock authored
This is to help debug an issue in Cloudflare Workers. I also added the same debug info to the ArrayOutputStream case, mostly for pleasing symmetry.
-
Ingvar Stepanyan authored
If holes are not supported on the target system and size to `copy` was passed as `kj::maxValue()`, this could lead to near-infinite loops.
-
- 10 Dec, 2018 2 commits
-
-
Kenton Varda authored
Fix cancellation in AsyncTee::PumpSink.
-
Kenton Varda authored
-
- 07 Dec, 2018 4 commits
-
-
Kenton Varda authored
Typo in c++/src/kj/array.h
-
Kenton Varda authored
Fix overflow in PackedInputStream.
-
Simon Struk authored
-
Max FERGER authored
-
- 29 Nov, 2018 2 commits
-
-
Kenton Varda authored
Multi-host HttpClient shouldn't rewrite URL.
-
Kenton Varda authored
-
- 26 Nov, 2018 4 commits
-
-
Kenton Varda authored
Fix typo
-
Kenton Varda authored
Extend kj::Url with option to not collapse empty path/query components.
-
Navin Francis authored
-
Kenton Varda authored
-
- 22 Nov, 2018 2 commits
-
-
Kenton Varda authored
Add `group` to the list of possible annotations targets.
-
Kenton Varda authored
initialize anonymous enums in isPlausiblyText() and isPlausiblyJson()
-
- 21 Nov, 2018 1 commit
-
-
Kenton Varda authored
This is to fix a complaint about Cloudflare Workers removing these components as requests pass through, which apparently breaks someone's funky URLs. Arguably "." and ".." processing presents a similar problems. But, allowing ".." to pass through is much more likely to lead to security problems. Browsers will generally process "." and ".." before sending a request (whereas they won't collapse double-slashes), so we're following their lead here.
-
- 17 Nov, 2018 1 commit
-
-
David Renshaw authored
-
- 07 Nov, 2018 1 commit
-
-
Alexander Saltanov authored
-
- 06 Nov, 2018 1 commit
-
-
Kenton Varda authored
Allow WebSocket to keep sending after close().
-
- 05 Nov, 2018 1 commit
-
-
Kenton Varda authored
In Cloudflare Workers, we've observed applications in the wild that continue to send messages after a Close message. This is incorrect, but it happens, and we end up logging a spurious error as we attempt to proxy the message through. By removing this restriction, we can now proxy these WebSockets despite the incorrect usage.
-
- 29 Oct, 2018 2 commits
-
-
Kenton Varda authored
Make KJ_CASE_ONEOF work in templated contexts.
-
Kenton Varda authored
Don't escape forward slashes in JSON output
-
- 26 Oct, 2018 1 commit
-
-
Tim authored
Forward slashes don't need to be escaped in JSON.
-
- 20 Oct, 2018 1 commit
-
-
Kenton Varda authored
-
- 12 Oct, 2018 2 commits
-
-
Kenton Varda authored
Merge pull request #751 from capnproto/harris/zero-length-responses-get-no-content-length-and-great-sadness Zero-length HTTP responses get no Content-Length header
-
Harris Hancock authored
There is currently no way to explicitly omit a Content-Length/Transfer-Encoding header on an HTTP response to a HEAD request. This is awkward for a proxy, which would ideally pass along responses as-is, even if they have no such headers. This change allows an author to pass zero as the expected body length to HttpService::Response::send() to mean "do not set any body header." This means that a proxy might strip Content-Length: 0 headers, but will never add a Content-Length header where there was none before.
-
- 10 Oct, 2018 2 commits
-
-
Kenton Varda authored
Silence compiler warning
-
Harris Hancock authored
-
- 08 Oct, 2018 1 commit
-
-
Kenton Varda authored
Implement JSON-RPC adapter to Cap'n Proto interfaces.
-
- 07 Oct, 2018 2 commits
-
-
Kenton Varda authored
This isn't related to JSON-RPC but is a fix needed for the Ekam language server.
-
Kenton Varda authored
This implements JSON-RPC 2.0: https://www.jsonrpc.org/specification
-