Commit ec945bf
Fix #2969: Add timeout to establish_connection to prevent infinite loop
- Add timeout check in establish_connection method using send_timeout
- Prevents infinite loop when connection drops during handshake protocol
- Disables problematic nodes and logs timeout warnings
- Add test case to verify timeout functionality works correctly
Fixes issue where logs stop being flushed when handshake gets stuck
in unstable network environments with proxy components.
Signed-off-by: Ian Driver <[email protected]>1 parent d146812 commit ec945bf
File tree
2 files changed
+33
-0
lines changed- lib/fluent/plugin
- test/plugin
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
623 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
624 | 634 | | |
625 | 635 | | |
626 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1409 | 1432 | | |
0 commit comments