Commit 16eccc1
committed
AllLinesParser: Enable draining of stdout
If draining isn't enabled, the AllLinesParser and Script timeout,
because noone is reading the full output of the process and so
the process can't finish and will timeout.
This was noticed while `drbdsetup events --now` was writing around 1200 lines
into stdout and always hang in a timeout.1 parent 6f3e4e6 commit 16eccc1
2 files changed
Lines changed: 19 additions & 0 deletions
File tree
- utils/src
- main/java/com/cloud/utils/script
- test/java/com/cloud/utils
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
114 | 128 | | |
115 | 129 | | |
116 | 130 | | |
| |||
0 commit comments