Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dumping Outputstream is closed more then once #120

Closed
phax opened this issue Mar 27, 2023 · 1 comment
Closed

Dumping Outputstream is closed more then once #120

phax opened this issue Mar 27, 2023 · 1 comment
Assignees
Labels

Comments

@phax
Copy link
Owner

phax commented Mar 27, 2023

There seems to be a bug with Phase4 library DumpManager class, or at least with how it is closed.
After the incoming dumper writes content, AS4DumpManager::close() is called 3 times, which also calls StreamHelper.flush (aOS) each time to close the same stream.
It may work with the default file-based dumper because the OutputStream implementation that is used does not complain when it is flushed and closed many times.
We are using an S3OutputStream library to write to Amazon S3. That stream implementation throws an exception if you try to flush and close an already closed stream.

@phax phax self-assigned this Mar 27, 2023
@phax phax added the bug label Mar 27, 2023
phax added a commit that referenced this issue Apr 22, 2023
@phax
Copy link
Owner Author

phax commented Apr 22, 2023

This is part of the 2.1.0 release

@phax phax closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant