Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make UnseekableSocket work with select().

  • Loading branch information...
commit e754622d03b9af61ecde60ae526cc644e3ae2c18 1 parent 0190873
@FooBarWidget FooBarWidget authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/phusion_passenger/utils/unseekable_socket.rb
View
7 lib/phusion_passenger/utils/unseekable_socket.rb
@@ -88,7 +88,12 @@ def binmode
end
def to_io
- self
+ # This makes select() work.
+ @socket
+ end
+
+ def fileno
+ @socket.fileno
end
def addr
Please sign in to comment.
Something went wrong with that request. Please try again.