diff options
Diffstat (limited to 'lib/mauve/server.rb')
-rw-r--r-- | lib/mauve/server.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/mauve/server.rb b/lib/mauve/server.rb index 3d59049..047476d 100644 --- a/lib/mauve/server.rb +++ b/lib/mauve/server.rb @@ -117,6 +117,18 @@ module Mauve thread_list.delete(Thread.current) + # + # Check buffer sizes + # + if self.class.notification_buffer_size > 10 + logger.warn "Notification buffer has #{self.class.notification_buffer_size} messages in it" + end + + if self.class.packet_buffer_size > 10 + logger.warn "Packet buffer has #{self.class.packet_buffer_size} updates in it" + end + + THREAD_CLASSES.each do |klass| # # No need to double check ourselves. |