Testing with very long packets

This commit is contained in:
Keith Winstein
2011-08-09 23:30:34 -04:00
parent 0d6048964b
commit 27441a4825
+2
View File
@@ -102,8 +102,10 @@ int main( int argc, char *argv[] )
if ( fds[ 0 ].revents & POLLIN ) { if ( fds[ 0 ].revents & POLLIN ) {
char x = getchar(); char x = getchar();
for ( int i = 0; i < 4096; i++ ) {
n->get_current_state().key_hit( x ); n->get_current_state().key_hit( x );
} }
}
if ( fds[ 1 ].revents & POLLIN ) { if ( fds[ 1 ].revents & POLLIN ) {
n->recv(); n->recv();