mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/server.rb (WEBrick::GenericServer): close socket only if
the socket is not closed yet. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4179e0b5c6
commit
f898efd8a8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Apr 2 03:35:25 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/webrick/server.rb (WEBrick::GenericServer): close socket only if
|
||||||
|
the socket is not closed yet.
|
||||||
|
|
||||||
Sun Apr 1 23:03:18 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
Sun Apr 1 23:03:18 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* lib/net/ftp.rb (Net::BufferedSocket): should delegate send() to @io
|
* lib/net/ftp.rb (Net::BufferedSocket): should delegate send() to @io
|
||||||
|
|
|
@ -204,7 +204,7 @@ module WEBrick
|
||||||
else
|
else
|
||||||
@logger.debug "close: <address unknown>"
|
@logger.debug "close: <address unknown>"
|
||||||
end
|
end
|
||||||
sock.close
|
sock.close unless sock.closed?
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue