-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix: WebSocketClient hat TLS-Pakete falsch zerlegt.
- Loading branch information
Showing
5 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ | |
* @package Network | ||
* @file module.php | ||
* @author Michael Tröger <[email protected]> | ||
* @copyright 2017 Michael Tröger | ||
* @copyright 2020 Michael Tröger | ||
* @license https://creativecommons.org/licenses/by-nc-sa/4.0/ CC BY-NC-SA 4.0 | ||
* @version 1.0 | ||
* @version 2.4 | ||
*/ | ||
|
||
/** | ||
|
@@ -222,7 +222,7 @@ public function ApplyChanges() | |
} | ||
$OldState = $this->State; | ||
$this->SendDebug(__FUNCTION__, 'OldState:' . $OldState, 0); | ||
if ((($OldState != WebSocketState::unknow) and ($OldState != WebSocketState::Connected)) or ($OldState == WebSocketState::init)) { | ||
if ((($OldState != WebSocketState::unknow) and ( $OldState != WebSocketState::Connected)) or ( $OldState == WebSocketState::init)) { | ||
return; | ||
} | ||
|
||
|
@@ -745,7 +745,7 @@ public function ReceiveData($JSONString) | |
break; | ||
} | ||
} | ||
if (strlen($TLSData) > 0) { | ||
if (strlen($TLSData) == 0) { | ||
$this->TLSReceiveBuffer = ''; | ||
} else { | ||
//$this->SendDebug('Receive TLS Part', $TLSData, 0); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters