Commit ef97046
committed
fix infinite loop on connection failures
ngx_http_upsync_connect_handler():
When ngx_event_connect_peer() fails, we shouldn't set the current
timer timeout to 0 as that immediatelly calls the current function
again. Instead, we should call ngx_http_upsync_clean_event() to
properly clean up & to set the reconnection timer.1 parent 63733af commit ef97046
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
| 2646 | + | |
2649 | 2647 | | |
2650 | 2648 | | |
2651 | 2649 | | |
| |||
0 commit comments