1. 21 3月, 2017 1 次提交
  2. 24 2月, 2017 1 次提交
  3. 23 2月, 2017 1 次提交
  4. 06 2月, 2017 1 次提交
  5. 18 1月, 2017 1 次提交
  6. 14 1月, 2017 1 次提交
  7. 12 1月, 2017 1 次提交
  8. 05 1月, 2017 1 次提交
  9. 31 12月, 2016 1 次提交
  10. 24 12月, 2016 1 次提交
  11. 23 12月, 2016 1 次提交
  12. 19 12月, 2016 1 次提交
  13. 07 12月, 2016 1 次提交
  14. 30 11月, 2016 1 次提交
  15. 14 11月, 2016 1 次提交
  16. 29 10月, 2016 1 次提交
  17. 11 10月, 2016 1 次提交
    • M
      Permit same-origin connections by default · dae40447
      Matthew Draper 提交于
      WebSocket always defers the decision to the server, because it didn't
      have to deal with legacy compatibility... but the same-origin policy is
      still a reasonable default.
      
      Origin checks do not protect against a directly connecting attacker --
      they can lie about their host, but can also lie about their origin.
      Origin checks protect against a connection from 3rd-party controlled
      script in a context where a victim browser's cookies will be passed
      along. And if an attacker has breached that protection, they've already
      compromised the HTTP session, so treating the WebSocket connection in
      the same way seems reasonable.
      
      In case this logic proves incorrect (or anyone just wants to be more
      paranoid), we retain a config option to disable it.
      dae40447
  18. 06 10月, 2016 1 次提交
    • M
      Close the IO from the read loop thread · 4a7c5685
      Matthew Draper 提交于
      IO#close and IO#read across threads don't get along so well:
      
      After T1 enters #read and releases the GVL, T2 can call #close on the
      IO, thereby both closing the fd and freeing the buffer while T1 is using
      them.
      4a7c5685
  19. 03 10月, 2016 1 次提交
  20. 02 10月, 2016 2 次提交
    • J
      Move behavior to Server::Base, and flush pubsub · 35a497dc
      Jon Moss 提交于
      35a497dc
    • J
      Shutdown pubsub connection before classes are reloaded · a5dfba41
      Jon Moss 提交于
      Before this patch, if you were to make a file edit in your Rails
      application and you tried to load up the page, it would hang
      indefinitely. The issue is that Active Record is trying to cleanup after
      itself and clear all active connection, but Action Cable is still
      holding onto a connection from the pool. To resolve this, we are now
      shutting down the pubsub adapter before classes are reloaded, to avoid
      this altogether (connection is being returned to the pool).
      
      Credits to @skateman for discovering this bug. :)
      a5dfba41
  21. 01 10月, 2016 2 次提交
  22. 28 9月, 2016 1 次提交
  23. 23 9月, 2016 1 次提交
  24. 21 9月, 2016 2 次提交
  25. 07 9月, 2016 3 次提交
  26. 02 9月, 2016 1 次提交
  27. 20 8月, 2016 1 次提交
    • J
      Prevent invocation of channel action if rejected connection · 831e2c8d
      Jon Moss 提交于
      Fixes #23757.
      
      Before this commit, even if `reject` was called in the `subscribe`
      method for an Action Cable channel, all actions on that channel could
      still be invoked. This calls a `return` if a rejected connection tries
      to invoke any actions on the channel.
      831e2c8d
  28. 08 8月, 2016 1 次提交
  29. 07 8月, 2016 4 次提交
  30. 13 7月, 2016 1 次提交
  31. 02 7月, 2016 1 次提交
  32. 01 7月, 2016 1 次提交