Commit 8cab362d2faf39141533c07f64cbbdd3917fee2a

Authored by Georg Hopp
1 parent ed9ff630

remove the debug counts

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