Olivine-Labs / Alchemy-Websockets

An extremely efficient C# WebSocket server.
http://AlchemyWebsockets.net
Other
309 stars 105 forks source link

String contains weird characters and client drops after time with no activity #87

Open nojaf opened 11 years ago

nojaf commented 11 years ago

Hello,

I've experienced some strange problems when the client sends messages to the server. Extra characters were included in the string and I have no idea how this was possible. For example: Client sends: "3::3#Bernardus trippel#22;7#Cola #12;5#Hommelbier#19;8#Ice tea #14;2#Kriek#12;1#Primus#12;4#Sint bernardus Prior#18;6#Tongerlo#17;9#Water#13;" but server receives: "3::3#Bernardus trippel#22;7#Cola #12;5#Hommelbier#19;8#Ice tea #14;2#Kriek#12;1#Primus#12;4#Sint bernarȁ�ȁ�dus Prior#18;6#Tongerlo#17;9#Water#13;"

I'm using the latest version of Chrome and it's hard to reproduce this error. Did I miss some setting here?

Another problem I have is that when a client connects and there is no communication for like 5 minutes, the connection is droppped. How is this possible? Or am I missing another setting?

But besides that is the framework really great so yeah thanks!