Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-25 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi Sven, It's working! Thank you very much Davide Sven Van Caekenberghe-2 wrote > Hi Davide, > > First I'll explain why you see a difference in behaviour, then I'll give > you a solution. > > Network connections are expensive resources, most servers try to close > them as

Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-24 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi Sven, Thanks for your reply. I supposed that the ping/pong feature would have helped (I'm not an expert, but I found something about it on the net). Tomorrow I'm gonna try your updated runWith: and I'll feedback you. Thanks Davide Sven Van Caekenberghe-2 wrote > Hi David

Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-24 Thread Sven Van Caekenberghe
Hi Davide, First I'll explain why you see a difference in behaviour, then I'll give you a solution. Network connections are expensive resources, most servers try to close them as soon as possible when they are not used. Zinc HTTP Components does not normally close connections by itself, althou

Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-23 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi, I put nginx as a websocket proxy and I run the ZnWebSocketEchoHandler. Unfortunately also with this configuration the connection closes it after a couple of minutes of inactivity Cheers Davide -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html --

[Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-20 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi guys! I've a problem with websockets, I'm quite a noob on the subject and I'm doing some tests with them. I run the echo websocket this way: ZnServer startDefaultOn: 8000. ZnServer default delegate: (ZnWebSocketDelegate handler: ZnWebSocketEchoHandler new). I tested it