Permalink
Browse files

Make UnseekableSocket work with select().

  • Loading branch information...
1 parent 0190873 commit e754622d03b9af61ecde60ae526cc644e3ae2c18 @FooBarWidget FooBarWidget committed Apr 3, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 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

0 comments on commit e754622

Please sign in to comment.