Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid calling tcp_listener_stats when it is not available

Signed-off-by: Aman Gupta <aman@tmm1.net>
Acked-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information...
commit 1c18fd9c13f95fef6bcbdc0587d38886fa8e9064 1 parent d166ef4
@tmm1 authored Eric Wong committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/raindrops/middleware.rb
View
2  lib/raindrops/middleware.rb
@@ -130,7 +130,7 @@ def stats_response # :nodoc:
body = "calling: #{@stats.calling}\n" \
"writing: #{@stats.writing}\n"
- if defined?(Raindrops::Linux)
+ if defined?(Raindrops::Linux.tcp_listener_stats)
Raindrops::Linux.tcp_listener_stats(@tcp).each do |addr,stats|
body << "#{addr} active: #{stats.active}\n" \
"#{addr} queued: #{stats.queued}\n"
Please sign in to comment.
Something went wrong with that request. Please try again.