-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This issue was uncovered because the `http_client` components would not try to reconnect if the internal codec couldn't be initialised. The fix addresses the issue at the scanner level. `h.codecCtor.Create` will return a `*service.OwnedScanner`, but `h.codec` has type `codec.DeprecatedFallbackStream`, so if we get an error from `h.codecCtor.Create`, the `h.codec != nil` check in `Connect` will be true, so Benthos will think the input is connected. This can happen if the codec specification isn't compatible with the received data. Signed-off-by: Mihai Todor <[email protected]>
- Loading branch information
1 parent
4d6fce6
commit ba69e0f
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters