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

Compress outgoing EDDN data if its large #1409

Conversation

A-UNDERSCORE-D
Copy link
Contributor

This is a sidestep solution to #1390. It doesn't attempt to directly resend data, only compressing with gzip over a given size. If that STILL returns a 413, its dropped, as without introspection of the message we cannot make it any smaller

@A-UNDERSCORE-D A-UNDERSCORE-D linked an issue Jan 20, 2022 that may be closed by this pull request
util/http.py Outdated Show resolved Hide resolved
plugins/eddn.py Outdated Show resolved Hide resolved
plugins/eddn.py Outdated Show resolved Hide resolved
util/http.py Outdated Show resolved Hide resolved
plugins/eddn.py Outdated Show resolved Hide resolved
debug_webserver.py Outdated Show resolved Hide resolved
util/text.py Outdated Show resolved Hide resolved
@A-UNDERSCORE-D A-UNDERSCORE-D force-pushed the fix/1390/Ensure-we-handle-`413`-from-EDDN-properly branch from 7ef9263 to c10ec20 Compare January 25, 2022 15:11
plugins/eddn.py Outdated Show resolved Hide resolved
HTTP utils are anything generally useful for HTTP things, currently
thats just compressing a string if its larger than a given number of
bytes.

These libraries are intended to be available to plugins
This is a sidestep solution to EDCD#1390. It doesn't attempt to directly
resend data, only compressing with gzip over a given size. If that STILL
returns a 413, its dropped, as without introspection of the message we
cannot make it any smaller
@A-UNDERSCORE-D A-UNDERSCORE-D force-pushed the fix/1390/Ensure-we-handle-`413`-from-EDDN-properly branch from c10ec20 to e891ee4 Compare January 26, 2022 17:05
@Athanasius Athanasius merged commit c6a52cb into EDCD:develop Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure we handle 413 from EDDN properly
2 participants