From 576d6d76c6c730eec71394ab204db2b87bca9888 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 7 Nov 2005 19:39:57 +0100 Subject: Got rid of some debugging code we tried to use to track the 100% CPU bug. Turned out it was very suitable DoS code. :-) --- bitlbee.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bitlbee.c') diff --git a/bitlbee.c b/bitlbee.c index 66552130..e32b0e90 100644 --- a/bitlbee.c +++ b/bitlbee.c @@ -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 ) -- cgit v1.2.3