-
Notifications
You must be signed in to change notification settings - Fork 37
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
Handle up to 2GB payload on PHP32bits #65
Conversation
Can you modify the CI workflow to test against a 32-bit core? |
Honestly, I have very few knowledge about CI Test workflow and don't know how to do. :-( |
Allow me to summon the all-knowing @SimonFrings Alternatively, are you able to successfully run the entire test suite on a 32-bit system and provide the results? I'm specifically looking for the Autobahn ones; they test the WebSocket messaging protocols. |
Do you have any short instructions that describe how to run tests? |
Hi @cboden & @Domochip, Current master branch code (commit 7c96451):
Domochip master branch code (commit https://github.com/Domochip/RFC6455/commit/c018f30d0c39c5012725686a7259c85a1864b57b):
Bad |
Thanks a lot @BadWolf42 |
@cboden Do BadWolf42 test results are good for you? |
Hi @cboden, Can you guide us to PR an acceptable fix? Or do you need more time to think about it? Thanks and happy festive season, |
Hi guys, |
Hi @cboden, |
Hello, any update on this? The code in the commit fixed our issue with DiscordPHP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi everyone. Sorry for dragging my feet on this. The code looks good to me and things continue to work on my systems. I'm going to merge it.
If you guys know of a way I can virtualize a 32 bit system and provide me with some code I can use to reproduce getting a too big response, I'd appreciate it.
Hello, I don't fully understand the way the test suite is working, but as per shivammathur/setup-php#302 (comment) and https://github.com/shivammathur/setup-php#multi-arch-setup, shivammathur/setup-php should be able to handle 32 bit containerized test suites. For the tests done in December, I used a Raspberry Pi 3B+. Bad |
PR described in issue #64
Main idea is to avoid
unpack('J',...
on 32bits system.$payload_length is in Big Endian allowing to keep only 4 last bytes to unpack it as an
unsigned long
instead ofunsigned long long