Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

Bad request from cache server #10

Closed
medic0803 opened this issue May 1, 2021 · 3 comments
Closed

Bad request from cache server #10

medic0803 opened this issue May 1, 2021 · 3 comments
Assignees

Comments

@medic0803
Copy link
Owner

Describe the bug
The cache server send the wrong format of http request which lead to http 400 bad request
image

@medic0803 medic0803 self-assigned this May 1, 2021
@medic0803
Copy link
Owner Author

Reason: Readlines() freezed the whole process, change it to readline(), everything run smoothly

@medic0803 medic0803 reopened this May 2, 2021
@medic0803
Copy link
Owner Author

The http connection has successfully completed with the full header of http request, but the new issue is that the read data cannot be written into the tempfile and send back to client

@medic0803
Copy link
Owner Author

On the one hand recv() hangs due to the socket would block itself. Since I set the timeout it could break itself, on the other hand, when we get the big file, it would be cut into small block, so we have to enlarge the buffer size. Everything run smoothly now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant