Permalink
Browse files

disabled outboud max cycle

  • Loading branch information...
1 parent b7588a5 commit 5bbc094f48c1db1290864f0034cef68837c20b69 @markjeee committed Sep 10, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/palmade/socket_io_rack/transports/xhr_multipart.rb
@@ -20,6 +20,8 @@ class XhrMultipart < XhrPolling
DEFAULT_MULTIPART_HEADER = "#{CContentType}: #{DEFAULT_CONTENT_TYPE}".freeze
DEFAULT_OPTIONS = {
+ # this is disabled by default with web sockets
+ :outbound_max_cycle => 0,
:multipart_boundary => Csocketio
}
@@ -37,9 +39,10 @@ def done?
[ :succeeded, :failed ].include?(deferred_status)
end
+ SEND_DATA_CODE = "send_data(@response.body.data)".freeze
def send_data(data)
@data = data
- eval("send_data(@response.body.data)", callbacks.last.binding)
+ eval(SEND_DATA_CODE, callbacks.last.binding)
ensure
@data = nil
end

0 comments on commit 5bbc094

Please sign in to comment.