Permalink
Commits on Dec 12, 2018
  1. Merge pull request #774 from capnproto/harris/debug-vector-output-stream

    kentonv committed Dec 12, 2018
    Log more info in VectorOutputStream::write() KJ_REQUIRE
Commits on Dec 11, 2018
  1. Check syscall result for sigqueue

    RReverser authored and kentonv committed Dec 11, 2018
  2. Fix bug where Array/VectorOutputStream::write() assumed adjecent buff…

    harrishancock committed Dec 11, 2018
    …ers were their own
  3. In AsyncUnixTest::UrgentObesrver, work around MSG_OOB not being suppo…

    kentonv committed Dec 11, 2018
    …rted.
    
    This seems to be the case, for example, on WSL.
  4. Merge pull request #773 from RReverser/copy-chunk-eof

    kentonv committed Dec 11, 2018
    Detect EOF in copyChunk
  5. Log more info in VectorOutputStream::write() KJ_REQUIRE

    harrishancock committed Dec 11, 2018
    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.
  6. Detect EOF in copyChunk

    RReverser committed Dec 11, 2018
    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.
Commits on Dec 10, 2018
  1. Merge pull request #771 from capnproto/fix-async-tee-cancellation

    kentonv committed Dec 10, 2018
    Fix cancellation in AsyncTee::PumpSink.
  2. Fix cancellation in AsyncTee::PumpSink.

    kentonv committed Dec 5, 2018
Commits on Dec 7, 2018
  1. Merge pull request #768 from UnePierre/master

    kentonv committed Dec 7, 2018
    Typo in c++/src/kj/array.h
  2. Merge pull request #769 from simon-struk/master

    kentonv committed Dec 7, 2018
    Fix overflow in PackedInputStream.
  3. Fix overflow in PackedInputStream.

    simon-struk committed Dec 7, 2018
  4. Typo in c++/src/kj/array.h

    UnePierre committed Dec 7, 2018
Commits on Nov 29, 2018
  1. Merge pull request #765 from capnproto/http-client-no-rewrite-url

    kentonv committed Nov 29, 2018
    Multi-host HttpClient shouldn't rewrite URL.
  2. Multi-host HttpClient shouldn't rewrite URL.

    kentonv committed Nov 29, 2018
Commits on Nov 26, 2018
  1. Merge pull request #763 from NavinF/patch-1

    kentonv committed Nov 26, 2018
    Fix typo
  2. Merge pull request #762 from capnproto/url-allow-empty

    kentonv committed Nov 26, 2018
    Extend kj::Url with option to not collapse empty path/query components.
  3. Fix typo

    NavinF committed Nov 26, 2018
  4. Don't add an empty path component on trailing slash.

    kentonv committed Nov 26, 2018
Commits on Nov 22, 2018
  1. Merge pull request #760 from sashka/master

    kentonv committed Nov 22, 2018
    Add `group` to the list of possible annotations targets.
  2. Merge pull request #761 from dwrensha/initialize-enums

    kentonv committed Nov 22, 2018
    initialize anonymous enums in isPlausiblyText() and isPlausiblyJson()
Commits on Nov 21, 2018
  1. Extend kj::Url with option to not collapse empty path/query components.

    kentonv committed Nov 21, 2018
    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.
Commits on Nov 17, 2018
Commits on Nov 7, 2018
  1. Add `group` to the list of possible annotations targets.

    sashka committed Nov 7, 2018
Commits on Nov 6, 2018
  1. Merge pull request #758 from capnproto/websocket-post-close

    kentonv committed Nov 6, 2018
    Allow WebSocket to keep sending after close().
Commits on Nov 5, 2018
  1. Allow WebSocket to keep sending after close().

    kentonv committed Nov 5, 2018
    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.
Commits on Oct 29, 2018
  1. Merge pull request #753 from capnproto/fix-oneof

    kentonv committed Oct 29, 2018
    Make KJ_CASE_ONEOF work in templated contexts.
  2. Merge pull request #757 from Timmmm/patch-1

    kentonv committed Oct 29, 2018
    Don't escape forward slashes in JSON output
Commits on Oct 26, 2018
  1. Don't escape forward slashes in JSON output

    Timmmm committed Oct 26, 2018
    Forward slashes don't need to be escaped in JSON.
Commits on Oct 20, 2018
  1. Make KJ_CASE_ONEOF work in templated contexts.

    kentonv committed Oct 20, 2018
Commits on Oct 12, 2018
  1. Merge pull request #751 from capnproto/harris/zero-length-responses-g…

    kentonv committed Oct 12, 2018
    …et-no-content-length-and-great-sadness
    
    Zero-length HTTP responses get no Content-Length header
  2. Zero-length HTTP responses to HEAD get no Content-Length header

    harrishancock committed Oct 10, 2018
    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.
Commits on Oct 10, 2018
  1. Merge pull request #750 from capnproto/harris/silence-compiler-warning

    kentonv committed Oct 10, 2018
    Silence compiler warning
  2. Silence compiler warning

    harrishancock committed Oct 10, 2018
Commits on Oct 8, 2018
  1. Merge pull request #748 from capnproto/json-rpc

    kentonv committed Oct 8, 2018
    Implement JSON-RPC adapter to Cap'n Proto interfaces.