Browse Source

remove the debug counts

1.0.0
Georg Hopp 11 years ago
parent
commit
8cab362d2f
  1. 3
      src/comm_manager_epoll.c
  2. 1
      src/i_comm_manager.c
  3. 5
      src/io_handler.c
  4. 4
      src/protocol_handler.c
  5. 4
      testers/testclient.sh

3
src/comm_manager_epoll.c

@ -38,8 +38,6 @@
struct epoll_event events[MAXEVENTS]; struct epoll_event events[MAXEVENTS];
extern int count_write_ready;
static static
int int
commManagerEpollCtor(void * _this, va_list * params) commManagerEpollCtor(void * _this, va_list * params)
@ -124,7 +122,6 @@ TR_commManagerEpollSelect(void * _this, TR_Event event, int timeout)
TR_eventHandlerIssueEvent((TR_EventHandler)this, _event); TR_eventHandlerIssueEvent((TR_EventHandler)this, _event);
this->events[i].events &= ~EPOLLOUT; this->events[i].events &= ~EPOLLOUT;
count_write_ready++;
} }
} }
} }

1
src/i_comm_manager.c

@ -65,7 +65,6 @@ TR_commManagerSelect(void * _this, TR_Event event)
} }
TR_CALL(_this, TR_CommManager, select, event, timeout); TR_CALL(_this, TR_CommManager, select, event, timeout);
TR_eventDispatcherUpdateNextPoll(dispatcher);
return TR_EVENT_DONE; return TR_EVENT_DONE;
} }

5
src/io_handler.c

@ -29,9 +29,6 @@
#include "tr/comm_end_point.h" #include "tr/comm_end_point.h"
#include "tr/interface/comm_end_point.h" #include "tr/interface/comm_end_point.h"
extern int count_write_ready;
int count_write_ready_handle = 0;
static static
int int
ioHandlerCtor(void * _this, va_list * params) ioHandlerCtor(void * _this, va_list * params)
@ -93,8 +90,6 @@ ioHandlerWrite(void * _this, TR_Event event)
{ {
TR_Event revent, close_event = NULL; TR_Event revent, close_event = NULL;
count_write_ready_handle++;
switch (TR_cepWriteBuffered((TR_CommEndPoint)event->subject)) { switch (TR_cepWriteBuffered((TR_CommEndPoint)event->subject)) {
case FALSE: // EAGAIN case FALSE: // EAGAIN
revent = TR_eventSubjectEmit( revent = TR_eventSubjectEmit(

4
src/protocol_handler.c

@ -32,8 +32,6 @@
#include "tr/comm_end_point.h" #include "tr/comm_end_point.h"
#include "tr/interface/comm_end_point.h" #include "tr/interface/comm_end_point.h"
int count_write_ready = 0;
static static
int int
protocolHandlerCtor(void * _this, va_list * params) protocolHandlerCtor(void * _this, va_list * params)
@ -93,8 +91,6 @@ protocolHandlerCompose(void * _this, TR_Event event)
NULL); NULL);
TR_eventHandlerIssueEvent((TR_EventHandler)_this, _event); TR_eventHandlerIssueEvent((TR_EventHandler)_this, _event);
count_write_ready++;
} else { } else {
//printf("%s: compose failed\n", __func__); //printf("%s: compose failed\n", __func__);
} }

4
testers/testclient.sh

@ -2,9 +2,9 @@
pids="" pids=""
i=0 i=0
while [ $i -lt 20 ]
while [ $i -lt 100 ]
do do
dd if=/dev/zero bs=8192 count=25000 | nc localhost 5678 &
dd if=/dev/zero bs=8192 count=25000 | nc 192.168.2.13 5678 &
pids="${pids} $!" pids="${pids} $!"
i=$((i + 1)) i=$((i + 1))
done done

Loading…
Cancel
Save