File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
## ` v1.6 `
6
6
7
- > PHP version ` ^7.2 `
7
+ > PHP version ` ^7.2|^8.0 `
8
8
9
9
### ` 1.6.0 `
10
10
14
14
15
15
## ` v1.5 `
16
16
17
- > PHP version ` ^7.2 `
17
+ > PHP version ` ^7.2|^8.0 `
18
+
19
+ ### ` 1.5.3 `
20
+
21
+ * Fix for persistent connection (@sirn-se )
18
22
19
23
### ` 1.5.2 `
20
24
Original file line number Diff line number Diff line change @@ -440,6 +440,8 @@ protected function connect(): void
440
440
throw new ConnectionException ($ error );
441
441
}
442
442
443
+ $ address = "{$ scheme }:// {$ host }{$ path_with_query }" ;
444
+
443
445
if (!$ persistent || $ this ->connection ->tell () == 0 ) {
444
446
// Set timeout on the stream as well.
445
447
$ this ->connection ->setTimeout ($ this ->options ['timeout ' ]);
@@ -489,10 +491,6 @@ function ($key, $value) {
489
491
// Get server response header (terminated with double CR+LF).
490
492
$ response = $ this ->connection ->getLine (1024 , "\r\n\r\n" );
491
493
492
- /// @todo Handle version switching
493
-
494
- $ address = "{$ scheme }:// {$ host }{$ path_with_query }" ;
495
-
496
494
// Validate response.
497
495
if (!preg_match ('#Sec-WebSocket-Accept:\s(.*)$#mUi ' , $ response , $ matches )) {
498
496
$ error = "Connection to ' {$ address }' failed: Server sent invalid upgrade response: {$ response }" ;
You can’t perform that action at this time.
0 commit comments