- 23 Jul, 2015 1 commit
-
-
Kenton Varda authored
Fix bug causing exception: "'Disembargo' of type 'senderLoopback' sent to an object that does not point back to the sender." The problem happened when pipelined calls were made on a promised capability, but then that capability turned out to be null. The promise resolving code incorrectly interpreted this as the remote promise having resolved to a local capability (because the "null" stub capability looks local), and so it would send a Disembargo message to flush the pipeline as required. However, the remote end would receive this Disembargo message and find it is addressed to a null capability, not a capability pointing back to the sender. This was treated as a protocol error, causing the receiver to close the connection. The solution is to explicitly identity "null" capabilities so that we can distinguish this case. This change also has the benefit that now when you copy a null capability between messages with foo.setCap(bar.getCap()), the pointer will be set null in the destination, rather than becoming a reference to a local broken capability. Thanks to David Renshaw for narrowing this down.
-
- 30 Dec, 2014 1 commit
-
-
Kenton Varda authored
A compatibility layer is provided to ease migration.
-
- 24 Nov, 2014 1 commit
-
-
Kenton Varda authored
The project file still only compiles a test binary, but it should be easy to separate out a library project from here. Thanks again to Bryan Boreham <bjboreham@gmail.com> for much help getting this working.
-
- 26 Oct, 2014 1 commit
-
-
Kenton Varda authored
To use, pass --disable-reflection to the configure script. This produces a smaller runtime library. However, using it for this purpose is not recommended. The main purpose of lite mode is to define a subset of Cap'n Proto which might plausibly compile under MSVC. MSVC still lacks full support for constexpr and expression SFINAE; luckily, most of our use of these things relates to reflection, and not all users need reflection. Cap'n Proto lite mode inherits its name from Protocol Buffers' lite mode. However, there are some key differences: - Protobuf generated code included global constructors related to registering descriptors and extensions. For many people, this was the main reason to use lite mode: to get rid of these global constructors and achieve faster startup times. Cap'n Proto, on the other hand, never had global constructors in the first place. - Schemas are actually still available in lite mode, though only in their raw (Cap'n Proto structure) form. Only the schema API (which wraps the raw schemas in a more convenient interface) and reflection API (which offers a convenient way to use the schemas) are unavailable. - Lite mode is enabled in an application by defining CAPNP_LITE rather than by specifying an annotation in the schema file. This better-reflects real-world usage patterns, where you typically want to enable lite mode application-wide anyway. - We do not build the lite mode library by default. You must request it by passing --disable-reflection to the configure script. Before you can do that, you must have a prebuilt Cap'n Proto compiler binary available, since the compiler can't be built without reflection. - Relatedly, the lite mode library is built with the same name as the full library. This library is not intended to be installed. If anything it should be statically linked. But, mostly the option only exists on non-MSVC platform to give us a way to test that we haven't broken lite mode.
-
- 11 Sep, 2014 1 commit
-
-
Kenton Varda authored
Fix obscure bug where the last outgoing message (and any capabilities therein) would not get released (until a new message was sent, replacing it as the last). This took hours to track down, because it initially looked like "Release" messages weren't being honored in some cases (when they happened to be releasing a capability from the last message, and no subsequent messages were sent). Initial attempts to capture this in a unit test failed because the test of course used a subsequent call to detect if the capability had been released, which succeeded.
-
- 20 Jun, 2014 1 commit
-
-
Kenton Varda authored
For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company). The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is. Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change: https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
-
- 10 Dec, 2013 1 commit
-
-
Kenton Varda authored
Lift requirement that releaseParams() be called before tailCall() or allowCancellation() -- this is no longer necessary given the protocol simplification that allowed cap descriptors to be interpreted immediately upon receipt.
-
- 07 Dec, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 Dec, 2013 1 commit
-
-
Kenton Varda authored
-
- 05 Dec, 2013 2 commits
-
-
Kenton Varda authored
Get rid of 'Advanced' server methods, just have one method that takes a CallContext. A typedef reduces boilerplate.
-
Kenton Varda authored
Make all Promise methods consistently consume the promise (returning a new promise when it makes sense), rename daemonize -> detach, and make eagerlyEvaluate() require an error handler (this caught several places where I forgot to use one).
-
- 30 Nov, 2013 1 commit
-
-
Kenton Varda authored
-
- 28 Nov, 2013 1 commit
-
-
Kenton Varda authored
Revamp concurrency model, part 1: EventLoop no longer allows cross-thread event queuing, simplifying many things. Capability clients are no longer thread-safe, so they don't have to be so const. In the future, explicit ways to communicate between threads will be re-added, but threads will be treated more like separate vats that just happen to have a particularly fat pipe. Upcoming: Remove mutexes.
-
- 26 Nov, 2013 2 commits
-
-
Kenton Varda authored
Implement opt-in cancellation for local calls. (Previously, cancellation would happen whether or not the callee had opted in.)
-
Kenton Varda authored
-
- 25 Nov, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 23 Nov, 2013 1 commit
-
-
Kenton Varda authored
Tail calls half-implemented, but I think it's time to delete all the cancellation code before continuing because it will simplify things.
-
- 12 Nov, 2013 1 commit
-
-
Kenton Varda authored
Define new KJ constants for min/max integer values and inf/nan, then remove all use of numeric_limits.
-
- 08 Nov, 2013 1 commit
-
-
Kenton Varda authored
Implement two-party network. The first RPC call over a socket took place at 2013-11-08 14:46:43 -0800 and completed successfully.
-
- 23 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 08 Jul, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 Jun, 2013 3 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
- 05 Jun, 2013 1 commit
-
-
Kenton Varda authored
-
- 30 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 22 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 17 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 16 May, 2013 1 commit
-
-
Kenton Varda authored
Implement ability to set() struct and list fields by deep-copying from a corresponding Reader. This copy requires no schema knowledge.
-
- 08 May, 2013 1 commit
-
-
Kenton Varda authored
Restore ability to upgrade from List(Bool) to List(T) where T is a struct whose @0 field is of type Bool. I previously disallowed this to reduce complexity, but it turned out to actually increase complexity.
-
- 04 May, 2013 1 commit
-
-
Kenton Varda authored
Delete Code Friday: Inline structs/lists/data are too complicated for not enough benefit. There goes a week of my life that I'll never get back.
-
- 29 Apr, 2013 1 commit
-
-
Kenton Varda authored
Correctly handle inline fields that aren't present in the parent struct (i.e. because we're reading an older version of the struct that lacked those fields).
-
- 27 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 20 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 17 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 04 Apr, 2013 1 commit
-
-
Kenton Varda authored
Make enum syntax match docs, make enum lists work correctly, add enum tests, enforce maximum ordinals on enum values and interface methods, change the maximum field ordinal to 16-bit to match docs (now all ordinal limits match).
-
- 29 Mar, 2013 1 commit
-
-
Kenton Varda authored
-
- 28 Mar, 2013 1 commit
-
-
Kenton Varda authored
-
- 19 Mar, 2013 1 commit
-
-
Kenton Varda authored
-