Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid unused variable warning of testcase.

Let GC collects a keep-alive server thread.
  • Loading branch information...
commit 4ac6fee4774a250bcd120ee8f41cd464c5d21c13 1 parent 25afc79
@nahi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/test_httpclient.rb
View
2  test/test_httpclient.rb
@@ -1186,7 +1186,7 @@ def test_keepalive_disconnected
server = TCPServer.open('127.0.0.1', 0)
server.listen(30) # set enough backlogs
endpoint = "http://127.0.0.1:#{server.addr[1]}/"
- server_thread = Thread.new {
+ Thread.new {
Thread.abort_on_exception = true
# emulate 10 keep-alive connections
10.times do |idx|
Please sign in to comment.
Something went wrong with that request. Please try again.