Permalink
Browse files

Merge pull request #6 from vipulnsward/fix-warnings

Fix some long running ruby warnings.
  • Loading branch information...
2 parents 079bf3a + 2fd75f4 commit 58cd6b3147889f913d78652d3cece5815c06a3ad @msva msva committed Feb 21, 2014
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/fcgi.rb
View
7 lib/fcgi.rb
@@ -115,7 +115,7 @@ def each_request(&block)
end
def session
- sock, addr = *@server.accept
+ sock, _ = *@server.accept
return unless sock
fsock = FastCGISocket.new(sock)
req = next_request(fsock)
@@ -196,7 +196,7 @@ def initialize(sock)
def read_record
header = @socket.read(Record::HEADER_LENGTH) or return nil
return nil unless header.size == Record::HEADER_LENGTH
- version, type, reqid, clen, padlen, reserved = *Record.parse_header(header)
+ _, type, reqid, clen, padlen, _ = *Record.parse_header(header)
Record.class_for(type).parse(reqid, read_record_body(clen, padlen))
end
@@ -356,7 +356,7 @@ class BeginRequestRecord < Record
BODY_FORMAT = 'nCC5'
def BeginRequestRecord.parse(id, body)
- role, flags, *reserved = *body.unpack(BODY_FORMAT)
+ role, flags, *_ = *body.unpack(BODY_FORMAT)
new(id, role, flags)
end
@@ -626,7 +626,6 @@ def stdoutput
if FCGI::is_cgi?
yield ::CGI.new(*args)
else
- exit_requested = false
FCGI::each do |request|
$stdout, $stderr = request.out, request.err

0 comments on commit 58cd6b3

Please sign in to comment.