Ratchet icon indicating copy to clipboard operation
Ratchet copied to clipboard

Patch for V0.4

Open Kurairaito opened this issue 10 years ago • 6 comments

dear,

Here is a patch to fix a crash when a connection is openned and keepAlive is requested

Notice: Undefined variable: from in C:\xampp\htdocs\x1601\api\vendor\cboden\ratchet\src\Ratchet\WebSocket\WsServer.php on line 214

Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, null given in C:\xampp\htdocs\x1601\api\vendor\cboden\ratchet\src\Ratchet\WebSocket\WsServer.php on line 214

Notice: Trying to get property of non-object in C:\xampp\htdocs\x1601\api\vendor\cboden\ratchet\src\Ratchet\WebSocket\WsServer.php on line 214

Fatal error: Call to a member function send() on null in C:\xampp\htdocs\x1601\api\vendor\cboden\ratchet\src\Ratchet\WebSocket\WsServer.php on line 216

Patch removed, see pull request : https://github.com/ratchetphp/Ratchet/pull/413

Kurairaito avatar Apr 01 '16 21:04 Kurairaito

Hello, you should use the pull request system for your patch :) .

(it could be awesome to add a test)

Nek- avatar Apr 07 '16 21:04 Nek-

Yeah, but I couldn't find a way to do it. I commited in local but then couldn't push or create a pull request (I think I must push before do that) , so I just put the patch as text here... I also put another patch in RFC dependencie that fix connexion refused from Firefox.

On Thu, Apr 7, 2016, 23:27 Maxime Veber [email protected] wrote:

Hello, you should use the pull request systm for your patch :) .

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ratchetphp/Ratchet/issues/411#issuecomment-207094433

Kurairaito avatar Apr 08 '16 05:04 Kurairaito

You can change the code online and github will create a pull request for you ;)

philippfrenzel avatar Apr 08 '16 10:04 philippfrenzel

@Kurairaito the workflow is to create a fork, make a branch, then a PR to the main project ! You can't create branches on this project.

Nek- avatar Apr 08 '16 10:04 Nek-

Done, I hope I did it well. I didn't know this side of github thanks.

Kurairaito avatar Apr 08 '16 19:04 Kurairaito

Merged in RFC6455 library

cboden avatar Dec 30 '16 19:12 cboden