@@ -165,11 +165,12 @@ void ngx_http_redirectionio_read_handler(ngx_event_t *rev) {
165
165
166
166
if (rev -> timedout ) {
167
167
ctx -> connection_error = 1 ;
168
- ctx -> read_handler (rev , NULL );
169
168
ctx -> resource -> peer .connection -> read -> handler = ngx_http_redirectionio_dummy_handler ;
170
169
171
170
ngx_log_error (NGX_LOG_ERR , r -> connection -> log , 0 , "[redirectionio] connection timeout while reading, skipping module for this request" );
172
171
172
+ ctx -> read_handler (rev , NULL );
173
+
173
174
return ;
174
175
}
175
176
@@ -179,7 +180,6 @@ void ngx_http_redirectionio_read_handler(ngx_event_t *rev) {
179
180
180
181
if (rv != NGX_OK ) {
181
182
ctx -> connection_error = 1 ;
182
- ctx -> read_handler (rev , NULL );
183
183
ctx -> resource -> peer .connection -> read -> handler = ngx_http_redirectionio_dummy_handler ;
184
184
185
185
ngx_log_error (NGX_LOG_ERR , r -> connection -> log , 0 , "[redirectionio] connection error while reading length, skipping module for this request" );
@@ -188,6 +188,8 @@ void ngx_http_redirectionio_read_handler(ngx_event_t *rev) {
188
188
ngx_del_timer (rev );
189
189
}
190
190
191
+ ctx -> read_handler (rev , NULL );
192
+
191
193
return ;
192
194
}
193
195
@@ -202,13 +204,14 @@ void ngx_http_redirectionio_read_handler(ngx_event_t *rev) {
202
204
203
205
if (rv != NGX_OK ) {
204
206
ctx -> connection_error = 1 ;
205
- ctx -> read_handler (rev , NULL );
206
207
ctx -> resource -> peer .connection -> read -> handler = ngx_http_redirectionio_dummy_handler ;
207
208
208
209
if (rev -> timer_set ) {
209
210
ngx_del_timer (rev );
210
211
}
211
212
213
+ ctx -> read_handler (rev , NULL );
214
+
212
215
ngx_log_error (NGX_LOG_ERR , r -> connection -> log , 0 , "[redirectionio] connection error while reading string: %d, skipping module for this request" , rv );
213
216
214
217
return ;
0 commit comments