Commit 8cab362d2faf39141533c07f64cbbdd3917fee2a

Authored by Georg Hopp
1 parent ed9ff630

remove the debug counts

... ... @@ -38,8 +38,6 @@
38 38
39 39 struct epoll_event events[MAXEVENTS];
40 40
41   -extern int count_write_ready;
42   -
43 41 static
44 42 int
45 43 commManagerEpollCtor(void * _this, va_list * params)
... ... @@ -124,7 +122,6 @@ TR_commManagerEpollSelect(void * _this, TR_Event event, int timeout)
124 122
125 123 TR_eventHandlerIssueEvent((TR_EventHandler)this, _event);
126 124 this->events[i].events &= ~EPOLLOUT;
127   - count_write_ready++;
128 125 }
129 126 }
130 127 }
... ...
... ... @@ -65,7 +65,6 @@ TR_commManagerSelect(void * _this, TR_Event event)
65 65 }
66 66
67 67 TR_CALL(_this, TR_CommManager, select, event, timeout);
68   - TR_eventDispatcherUpdateNextPoll(dispatcher);
69 68
70 69 return TR_EVENT_DONE;
71 70 }
... ...
... ... @@ -29,9 +29,6 @@
29 29 #include "tr/comm_end_point.h"
30 30 #include "tr/interface/comm_end_point.h"
31 31
32   -extern int count_write_ready;
33   -int count_write_ready_handle = 0;
34   -
35 32 static
36 33 int
37 34 ioHandlerCtor(void * _this, va_list * params)
... ... @@ -93,8 +90,6 @@ ioHandlerWrite(void * _this, TR_Event event)
93 90 {
94 91 TR_Event revent, close_event = NULL;
95 92
96   - count_write_ready_handle++;
97   -
98 93 switch (TR_cepWriteBuffered((TR_CommEndPoint)event->subject)) {
99 94 case FALSE: // EAGAIN
100 95 revent = TR_eventSubjectEmit(
... ...
... ... @@ -32,8 +32,6 @@
32 32 #include "tr/comm_end_point.h"
33 33 #include "tr/interface/comm_end_point.h"
34 34
35   -int count_write_ready = 0;
36   -
37 35 static
38 36 int
39 37 protocolHandlerCtor(void * _this, va_list * params)
... ... @@ -93,8 +91,6 @@ protocolHandlerCompose(void * _this, TR_Event event)
93 91 NULL);
94 92
95 93 TR_eventHandlerIssueEvent((TR_EventHandler)_this, _event);
96   -
97   - count_write_ready++;
98 94 } else {
99 95 //printf("%s: compose failed\n", __func__);
100 96 }
... ...
... ... @@ -2,9 +2,9 @@
2 2
3 3 pids=""
4 4 i=0
5   -while [ $i -lt 20 ]
  5 +while [ $i -lt 100 ]
6 6 do
7   - dd if=/dev/zero bs=8192 count=25000 | nc localhost 5678 &
  7 + dd if=/dev/zero bs=8192 count=25000 | nc 192.168.2.13 5678 &
8 8 pids="${pids} $!"
9 9 i=$((i + 1))
10 10 done
... ...
Please register or login to post a comment