diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2005-11-07 19:39:57 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2005-11-07 19:39:57 +0100 |
commit | 576d6d76c6c730eec71394ab204db2b87bca9888 (patch) | |
tree | a11ef5ccffc3af2ac56bf75800a4e9f57fcc8bc2 /bitlbee.c | |
parent | fe51bcf0ae238e6fde4400b3dd17ddf99f77ae2a (diff) |
Got rid of some debugging code we tried to use to track the 100% CPU bug.
Turned out it was very suitable DoS code. :-)
Diffstat (limited to 'bitlbee.c')
-rw-r--r-- | bitlbee.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -40,8 +40,6 @@ gboolean bitlbee_io_new_client( GIOChannel *source, GIOCondition condition, gpoi int new_socket = accept( global.listen_socket, (struct sockaddr *) &conn_info, &size ); - count_io_event(source, "main"); - log_message( LOGLVL_INFO, "Creating new connection with fd %d.", new_socket ); irc_new( new_socket ); @@ -124,8 +122,6 @@ gboolean bitlbee_io_current_client_read( GIOChannel *source, GIOCondition condit char line[513]; int st; - count_io_event(source, "main"); - if( condition & G_IO_ERR || condition & G_IO_HUP ) { irc_free( irc ); @@ -181,8 +177,6 @@ gboolean bitlbee_io_current_client_write( GIOChannel *source, GIOCondition condi time_t newtime; #endif - count_io_event(source, "main"); - #ifdef FLOOD_SEND newtime = time( NULL ); if( ( newtime - irc->oldtime ) > FLOOD_SEND_INTERVAL ) |