Commit Graph

92 Commits

Author SHA1 Message Date
Chris Boden
09bdf3bbce Remove unreachable code 2021-12-09 16:39:04 -05:00
Chris Boden
0473a4c224 Merge branch 'master' into v0.3.1 2021-12-07 10:27:26 -05:00
Chris Boden
5ce83bb58a change int syntax 2021-12-05 20:02:16 -05:00
Chris Boden
4835534e74 Ensure max[Message|Frame]PayloadSize is int if auto-set
fixes #41
2021-12-05 17:12:49 -05:00
Chris Boden
ef9dbe8dfe
Merge pull request #46 from 3kbest/pr81
silence PHP 8.1 deprecations
2021-12-05 16:51:02 -05:00
Eirik Besteland
79c3dd3924 Add ReturnTypeWillChange attribute to silence PHP 8.1 deprecations 2021-11-20 01:59:07 +01:00
Matko Andjelinic
855fa14031 added missing return of with methods 2020-10-24 09:27:43 +02:00
Matt Bonneau
17ffb941fd Fix docblock param 2020-05-14 11:12:45 -04:00
Matt Bonneau
d9df3419ba Correct ResponseVerifier logic replaces #39 2020-05-14 10:56:29 -04:00
Matt Bonneau
52b27fd7b4 Use exception factory that is passed in 2020-05-07 10:52:36 -04:00
Matt Bonneau
1cb14114c3 Change how disabled/supported/enabled is handled for deflate 2020-03-10 09:26:05 -04:00
Matt Bonneau
2159ed40f9 Requested changes for readability and style 2020-01-22 01:00:24 -05:00
Matt Bonneau
1af7e998b3 Merge branch 'master' into permessage-deflate
# Conflicts:
#	src/Messaging/MessageBuffer.php
#	tests/ab/clientRunner.php
#	tests/ab/run_ab_tests.sh
#	tests/ab/startServer.php
2020-01-22 00:36:05 -05:00
Chris Boden
e861242e1d Provide value in error for clarity 2019-12-15 05:17:35 -05:00
Matt Bonneau
bbdd346c1c Test resulting settings from different memory_limits + more tests 2019-12-14 12:52:19 -05:00
Matt Bonneau
cfc9049d13 Make memory limit testable 2019-12-12 13:59:55 -05:00
Matt Bonneau
c004fa7e64 Code formatting 2019-12-12 11:37:11 -05:00
Matt Bonneau
921f838255 Support for unsupported PHP versions 2019-12-11 14:47:53 -05:00
Matt Bonneau
830e2f561e Allow limits for maximum payload 2019-12-11 13:27:42 -05:00
Matt Bonneau
9c1df6a8e1 Should be framestart + 2 2019-12-10 23:05:53 -05:00
Matt Bonneau
11a21b7628 A little faster by not using Frame functions to test for frame sizes 2019-12-10 22:23:00 -05:00
Matt Bonneau
8aee220898 Rework MessageBuffer to better handle large buffers filled with small frames 2019-12-10 19:23:45 -05:00
Matt Bonneau
ed16f5cba1 Corrected $msgBuffer issue caused by merge with master 2019-05-01 08:48:10 -04:00
Matt Bonneau
cba2acd69d Merge branch 'master' of github.com:ratchetphp/RFC6455 into permessage-deflate
# Conflicts:
#	.travis.yml
#	src/Messaging/MessageBuffer.php
2019-05-01 08:31:47 -04:00
Chris Boden
c62f7cd95f
Merge pull request #30 from jmoo/fix-for-blocking-ops
Null out message buffer before calling onMessage handler
2019-03-10 13:10:42 -04:00
Matt Bonneau
0cb7c0280d
Merge pull request #25 from ratchetphp/suggest-subprotocol
Suggest correct subprotocol when subprotocol mismatch
2018-07-09 14:11:12 -04:00
me@jmoo.io
6d7d1b8ff1 Null out message buffer before calling onMessage handler 2018-07-07 17:40:12 -04:00
Štefan Kušnír
abceff5341 FIX PHP Fatal error: Allowed memory size of exhausted 2018-05-02 11:38:28 -04:00
Štefan Kušnír
7b36995d00 FIX PHP Fatal error: Allowed memory size of exhausted 2018-05-02 08:45:50 +02:00
Matt Bonneau
834de74a29 Suggest correct subprotocol when subprotocol mismatch
Fixes #24
2018-02-10 11:57:48 -05:00
Matt Bonneau
e91fcd67c8 Force deflate window bits to 9 fixes #22 2018-01-11 20:51:29 -05:00
Matt Bonneau
61ffa6aa2a Move sender parameter to maintain BC with previous version 2017-10-30 17:01:32 -04:00
Matt Bonneau
5f7f53e7eb Work on php version support and testing 2017-10-30 17:01:32 -04:00
Matt Bonneau
bc16757a61 Fixup version check for permessage-deflate 2017-10-30 17:01:32 -04:00
Matt Bonneau
b84ef8b9ce Client passes all per message deflate autobahn tests 2017-10-30 17:01:32 -04:00
Matt Bonneau
8eed9e7db2 Server passing tests - client passes most tests - refactoring and API help needed 2017-10-30 17:01:32 -04:00
Matt Bonneau
7280ddcd19 Per-message deflate with options work 2017-10-30 17:01:32 -04:00
Matt Bonneau
dd636a4058 When not agreeing on a subprotocol in non-strict - send no protocol header field 2017-09-13 09:40:02 -04:00
Matt Bonneau
8128af799a Fix requested changes on PR 2017-09-12 22:33:33 -04:00
Matt Bonneau
78b7137627 Revert BC breaks to ServerNegotiator 2017-09-10 15:10:54 -04:00
Matt Bonneau
4ad549b9e0 Correct Responses in ServerNegotiator add tests 2017-04-19 23:28:04 -04:00
Matt Bonneau
1d0374fd21 Replace recursion in MessageBuffer with loop 2016-12-30 15:35:40 -05:00
Chris Boden
889857a5e3 Give allowed methods in invalid method response
also a typo
2016-12-30 14:08:20 -05:00
Matt Bonneau
7ed72dc4b7 Explode Connection: header to find Update. Fixes #14 2016-07-29 01:27:59 -04:00
Chris Boden
055b3eca13 Merge branch 'close-reason' 2016-03-16 08:32:52 -04:00
Chris Boden
1a5aeaf5a4 Added support for reason to close frame
Also doing strict type checks on integers
Add Autobahn badge
2016-03-15 19:46:31 -04:00
Chris Boden
ccef4dc384 Echo valid clode code back to peer handler 2016-03-15 11:55:15 -04:00
Chris Boden
dd75dafe97 Fix passing closing code if valid, updated user agent 2016-03-14 23:25:52 -04:00
Chris Boden
bbc7818ddb Strict Sub-Protocol check off by default
More of an implementation detail, not specified in spec
2016-02-20 16:07:27 -05:00
Chris Boden
ac4d13cc09 Inject RequestVerfier instead of instantiating 2016-02-15 17:03:10 -05:00