- 23 Sep, 2017 1 commit
-
-
Kenton Varda authored
-
- 22 Sep, 2017 10 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
This is definitely wrong, because it makes the read/write tasks impossible to cancel and possibly makes them outlive the buffers they are reading from / writing to. I have no idea why I wrote the code this way, TBQH.
-
Kenton Varda authored
Don't reuse HTTP client connections if the previous request didn't read the entire response.
-
Kenton Varda authored
-
Kenton Varda authored
(Or if it didn't send the entire request body.)
-
Kenton Varda authored
This un-breaks code which previously relied upon an implicit cast from AutoCloseFd to int to call the non-ownership-passing versions of the methods.
-
Kenton Varda authored
Add AsyncCapabilityStream, an abstraction of unix sockets SCM_RIGHTS FD passing.
-
Kenton Varda authored
Implement HttpClient that automatically manages connections.
-
Kenton Varda authored
-
Kenton Varda authored
-
- 21 Sep, 2017 13 commits
-
-
Kenton Varda authored
Allow KJ_SWITCH_ONEOF to work on const variables
-
Kenton Varda authored
Avoid MSVC workaround in parse/common.h for clang.
-
Harris Hancock authored
-
Erik Murphy-Chutorian authored
-
Erik Murphy-Chutorian authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
There are actually two new client types: - One which always connects to a given NetworkAddress, but will automatically manage a pool of reusable connections. - One which looks up the remote address based on the URL it is given, and manages a pool of connections for each host. The latter of these two is a "true HTTP client library".
-
Kenton Varda authored
These are useful in unit tests. Often, some tasks have been queued, and we want to test that a particular thing happens or doesn't happen as a result of those tasks, without actually waiting on any specific promise. We need a way to run the event queue until it is empty. For that, we add WaitScope::poll(). Or, sometimes, we want to check if a specific promise is (or is not!) resolved as a result of the tasks that have been queued so far, but we may not want to actulaly wait() on it for a couple reasons: - We may actually want to verify that the promise is *not* resolved by tasks so far. wait()ing on it would be expected to deadlock. - We may expect the promise to resolve, but would prefer not to deadlock if it doesn't resolve (we'd rather fail fast). For this, we add Promise::poll(). There are lots of tests I've written which could be simplified by this, but for now I'm not refactoring any existing tests. Note that adding these (particularly Promise::poll()) required updating the async framework a bit, in that this is the first case where PromiseNode::onReady() might be called multiple times, or might be canceled without destroying the PromiseNode entirely. Luckily this was not hard to account for. (We still have the rule that get() can only be called once, though.)
-
Kenton Varda authored
-
Kenton Varda authored
These avoid the need for a read/modify/write.
-
Kenton Varda authored
This allows a lot of nice design patterns, and might later the the basis for capnp 3-party handoff within a machine.
-
- 19 Sep, 2017 1 commit
-
-
Kenton Varda authored
-
- 18 Sep, 2017 1 commit
-
-
Kenton Varda authored
Make win32Socketpair() more secure
-
- 17 Sep, 2017 1 commit
-
-
Kenton Varda authored
-
- 15 Sep, 2017 4 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
Extend kj::Network interface for easy SSRF protection
-
Kenton Varda authored
-
Kenton Varda authored
-
- 14 Sep, 2017 3 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
Clarify the RPC spec in some places
-
- 12 Sep, 2017 6 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
Add gzip (zlib) bindings.
-
Kenton Varda authored
-
Kenton Varda authored
-