From 27441a4825ebe679cff26fd1594ee78e2e5c20c1 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Tue, 9 Aug 2011 23:30:34 -0400 Subject: [PATCH] Testing with very long packets --- ntester.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ntester.cpp b/ntester.cpp index 6294ea9..78cba42 100644 --- a/ntester.cpp +++ b/ntester.cpp @@ -102,7 +102,9 @@ int main( int argc, char *argv[] ) if ( fds[ 0 ].revents & POLLIN ) { char x = getchar(); - n->get_current_state().key_hit( x ); + for ( int i = 0; i < 4096; i++ ) { + n->get_current_state().key_hit( x ); + } } if ( fds[ 1 ].revents & POLLIN ) {