Skip to content
Browse files

Fix some long running ruby warnings.

  • Loading branch information...
1 parent 079bf3a commit 2fd75f4699f02a4599a928b2af690b4d7552beff @vipulnsward vipulnsward committed
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 2fd75f4

Please sign in to comment.
Something went wrong with that request. Please try again.