Skip to content

Commit

Permalink
Too much recursion in hammer test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Hultman authored and Alex Hultman committed Aug 24, 2019
1 parent d120560 commit e2c093c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/hammer_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,17 @@ struct us_socket_t *perform_random_operation(struct us_socket_t *s) {
case 2: {
// write
us_socket_write(SSL, s, (char *) long_buffer, rand() % long_length, 0);

return perform_random_operation(s);
}
break;
case 3: {
// shutdown
us_socket_shutdown(SSL, s);

return perform_random_operation(s);
}
break;
case 4: {
// loop wakeup and timeout sweep
us_socket_timeout(SSL, s, 1);
us_wakeup_loop(us_socket_context_loop(SSL, us_socket_context(SSL, s)));

//return perform_random_operation(s);
}
break;
}
Expand Down

0 comments on commit e2c093c

Please sign in to comment.