1. 21 9月, 2016 1 次提交
  2. 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
  3. 16 8月, 2016 1 次提交
  4. 09 8月, 2016 1 次提交
  5. 07 8月, 2016 5 次提交
  6. 02 7月, 2016 1 次提交
  7. 29 6月, 2016 1 次提交
  8. 26 6月, 2016 1 次提交
  9. 02 6月, 2016 1 次提交
  10. 01 6月, 2016 3 次提交
  11. 26 5月, 2016 1 次提交
  12. 13 5月, 2016 1 次提交
  13. 09 5月, 2016 1 次提交
  14. 19 4月, 2016 2 次提交
    • J
      Cable: Extract stream handler construction · 3ba0eec2
      Jeremy Daer 提交于
      * Use separate stream handler builders for easy override and testing.
      * Fix worker pool execution that was silently failing since it only
        expected connection receivers.
      
      Sparked by code in #24162.
      3ba0eec2
    • J
      Cable: Periodic timers refresh · 983b743c
      Jeremy Daer 提交于
      * Rewrite docs
      * Support blocks in addition to method names and Proc args
      * Check for valid arguments
      * Convert `periodically :method_name` to Proc callbacks
      * Drop periodic runner methods from the worker pool
      * Ensure we clear active periodic timers after shutdown
      983b743c
  15. 15 4月, 2016 1 次提交
  16. 14 4月, 2016 1 次提交
  17. 31 3月, 2016 1 次提交
    • J
      Cable message encoding · b168eb58
      Jeremy Daer 提交于
      * Introduce a connection coder responsible for encoding Cable messages
        as WebSocket messages, defaulting to `ActiveSupport::JSON` and duck-
        typing to any object responding to `#encode` and `#decode`.
      * Consolidate encoding responsibility to the connection. No longer
        explicitly JSON-encode from channels or other sources. Pass Cable
        messages as Hashes to `#transmit` and rely on it to encode.
      * Introduce stream encoders responsible for decoding pubsub messages.
        Preserve the currently raw encoding, but make it easy to use JSON.
        Same duck type as the connection encoder.
      * Revert recent data normalization/quoting (#23649) which treated
        `identifier` and `data` values as nested JSON objects rather than as
        opaque JSON-encoded strings. That dealt us an awkward hand where we'd
        decode JSON strings… or not, but always encode as JSON. Embedding
        JSON object values directly is preferably, no extra JSON encoding,
        but that should be a purposeful protocol version change rather than
        ambiguously, inadvertently supporting multiple message formats.
      b168eb58
  18. 30 3月, 2016 1 次提交
  19. 27 3月, 2016 2 次提交
    • K
      Cable: Shush pop warnings when skipping Postgres tests. · dacfdf03
      Kasper Timm Hansen 提交于
      `skip` raises an exception to abort the execution of the test, so
      `super` would never be called and thus `@rx_adapter` and `@tx_adapter`
      would never have been defined at the time of teardown.
      
      Define them just before skipping and zap the warnings.
      dacfdf03
    • K
      Shush up EM::Hiredis when running tests. · f6b4bf65
      Kasper Timm Hansen 提交于
      EM::Hiredis were spewing screenfuls of warnings when running the Action Cable tests.
      
      Copied over the technique that shushes up faye-websocket in the client tests, so
      we can reduce the noise ratio.
      
      Note: there's still warnings spewed after tests have finished when EM::Hiredis shuts
      down. I haven't been able to shush them up yet.
      f6b4bf65
  20. 21 3月, 2016 1 次提交
    • J
      Gracefully handle disconnected clients · 4f8a8e2c
      Jeremy Daer 提交于
      We'll get `Errno::ECONNRESET` if the client forcibly disconnected.
      Just close the socket rather than raising the exception.
      
      Handle other errors in `ClientSocket#write`, too, mirroring the Faye
      error handling which swallows all `StandardError` on write.
      4f8a8e2c
  21. 12 3月, 2016 1 次提交
  22. 05 3月, 2016 1 次提交
  23. 02 3月, 2016 2 次提交
  24. 01 3月, 2016 3 次提交
  25. 28 2月, 2016 1 次提交
  26. 25 2月, 2016 4 次提交