@@ -110,7 +110,7 @@ fn start_method_handler_thread(
110
110
if quit. load ( Ordering :: SeqCst ) {
111
111
// notify the connection dealing main thread to stop.
112
112
control_tx
113
- . try_send ( ( ) )
113
+ . send ( ( ) )
114
114
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
115
115
break ;
116
116
}
@@ -120,15 +120,16 @@ fn start_method_handler_thread(
120
120
if quit. load ( Ordering :: SeqCst ) {
121
121
// notify the connection dealing main thread to stop.
122
122
control_tx
123
- . try_send ( ( ) )
123
+ . send ( ( ) )
124
124
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
125
125
break ;
126
126
}
127
127
128
128
let c = wtc. fetch_sub ( 1 , Ordering :: SeqCst ) - 1 ;
129
129
if c < min {
130
+ trace ! ( "notify client handler to create much more worker threads!" ) ;
130
131
control_tx
131
- . try_send ( ( ) )
132
+ . send ( ( ) )
132
133
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
133
134
}
134
135
@@ -147,7 +148,7 @@ fn start_method_handler_thread(
147
148
// the connection dealing main thread would
148
149
// have exited.
149
150
control_tx
150
- . try_send ( ( ) )
151
+ . send ( ( ) )
151
152
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
152
153
break ;
153
154
}
@@ -174,7 +175,7 @@ fn start_method_handler_thread(
174
175
// the connection dealing main thread would have
175
176
// exited.
176
177
control_tx
177
- . try_send ( ( ) )
178
+ . send ( ( ) )
178
179
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
179
180
break ;
180
181
}
@@ -197,7 +198,7 @@ fn start_method_handler_thread(
197
198
// the connection dealing main thread would have
198
199
// exited.
199
200
control_tx
200
- . try_send ( ( ) )
201
+ . send ( ( ) )
201
202
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
202
203
break ;
203
204
}
@@ -215,7 +216,7 @@ fn start_method_handler_thread(
215
216
// the connection dealing main thread would have
216
217
// exited.
217
218
control_tx
218
- . try_send ( ( ) )
219
+ . send ( ( ) )
219
220
. unwrap_or_else ( |err| debug ! ( "Failed to try send {:?}" , err) ) ;
220
221
break ;
221
222
}
0 commit comments