1. 19 Apr, 2019 2 commits
    • Kenton Varda's avatar
      Don't assume a short non-blocking read() means the socket buffer is empty. · d26e07f6
      Kenton Varda authored
      According to David Klempner, this turns out not to be a safe assumption:
      
      https://twitter.com/CaptainSegfault/status/1112622245531144194
      
      Interestingly, it turns out this optimization was also blocking the delivery of certain errors, because we would skip the read() where that error would otherwise be delivered. (Hence the unit test update.)
      d26e07f6
    • Kenton Varda's avatar
      Implement FD passing in Cap'n Proto. · e9c46ac1
      Kenton Varda authored
      An endpoint (subclass of `Capability::Server`) may override `kj::Maybe<int> getFd()` to expose an underlying file descriptor.
      
      A remote client may use `Capability::Client::getFd()` on the endpoint's capability to get that FD.
      
      The client and server must explicitly opt into FD passing by passing a max-FDs-per-message limit to TwoPartyVatNetwork and using Unix sockets as the transport. Nothing other than that is needed.
      e9c46ac1
  2. 18 Apr, 2019 5 commits
  3. 15 Apr, 2019 3 commits
  4. 13 Apr, 2019 1 commit
  5. 05 Apr, 2019 1 commit
  6. 03 Apr, 2019 1 commit
  7. 01 Apr, 2019 4 commits
  8. 29 Mar, 2019 1 commit
  9. 21 Mar, 2019 3 commits
  10. 20 Mar, 2019 5 commits
  11. 17 Mar, 2019 1 commit
  12. 12 Mar, 2019 2 commits
  13. 10 Mar, 2019 1 commit
  14. 08 Mar, 2019 2 commits
  15. 04 Mar, 2019 1 commit
  16. 27 Feb, 2019 1 commit
  17. 19 Feb, 2019 2 commits
  18. 12 Feb, 2019 2 commits
  19. 09 Feb, 2019 2 commits