Skip to content

Commit

Permalink
Debugging EOFError I keep getting with publish_to when using SSL.
Browse files Browse the repository at this point in the history
added net/https require to lib/private_pub.rb and shortened faye
timeout to 25 from 45.
added *~ to .gitignore for linux.
  • Loading branch information
cctalbott committed Mar 27, 2012
1 parent 914871a commit 125d04d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
*.gem
Gemfile.lock
.bundle
*~
3 changes: 2 additions & 1 deletion lib/private_pub.rb
@@ -1,5 +1,6 @@
require "digest/sha1"
require "net/http"
require "net/https"

require "private_pub/faye_extension"
require "private_pub/engine" if defined? Rails
Expand Down Expand Up @@ -68,7 +69,7 @@ def signature_expired?(timestamp)
# Returns the Faye Rack application.
# Any options given are passed to the Faye::RackAdapter.
def faye_app(options = {})
options = {:mount => "/faye", :timeout => 45, :extensions => [FayeExtension.new]}.merge(options)
options = {:mount => "/faye", :timeout => 25, :extensions => [FayeExtension.new]}.merge(options)
Faye::RackAdapter.new(options)
end
end
Expand Down

0 comments on commit 125d04d

Please sign in to comment.