-
-
Notifications
You must be signed in to change notification settings - Fork 15
HTTPS Connection halts when the request is too large #10
Comments
I managed to test directly with reactphp/http-client. It also seems to max out at 130064 (130065 bytes triggers the problem). If it helps at all I've been listening to drain events and only one is fired when the size of the request is too great. |
Cheers that will help narrow it down in the end. I'll have to do some testing myself. Out of interest, does it matter if you POST to site A or B or is the behavior consistent for both? |
I have only one test site ATM. I haven't reproduced the specifics, but the same issue happens with other public sites. I'm pretty convinced the magic number is extremely volatile. |
This may have to do with the fact that reactphp/http-client does not set any specific length for requests, ie: no Transfer-Encoding: chunked or Content-Length header. |
Interesting, aren't those headers set from guzzle? I'll look into it during the weekend 👍 |
I thought so too but apparently not from what I saw, at least in a simple POST call I tried. I'll add test code later. |
It is something I can add when missing from the adapter, it should be added honestly when known. |
Closing this issue for no activity thus assuming it has been resolved. |
When sending a large file via multipart/form-data using HTTPS the connection stalls. I am able to reproduce this consistently with php 5.6 and PHP 7 (albeit both have a different limit).
This may or may not be a problem in the underlying reactphp/socket-client or PHP ssl streams.
And here an example to test:
The text was updated successfully, but these errors were encountered: