Permalink
Browse files

Debugging EOFError I keep getting with publish_to when using SSL.

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...
1 parent 914871a commit 125d04d4e35350d523efbc1e17a370ee9abb868e @cctalbott committed Mar 27, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 lib/private_pub.rb
View
@@ -3,3 +3,4 @@
*.gem
Gemfile.lock
.bundle
+*~
View
@@ -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
@@ -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

0 comments on commit 125d04d

Please sign in to comment.