Closed glademiller closed 8 years ago
The echo and broadcast responses should be formatted in JSON. I was able to hack that together via string interpolation but I'm sure I didn't idiomatically.
Once that was done I ran the benchmark against it. It wasn't able to complete. The server consistently terminated all connections when it got to 100 connections. Not sure what is going on here.
Yeah I'm unfortunately not a Rust expert so there is probably something I'm missing. I'll post something over on /r/rust on Reddit to see if someone with more experience can remedy the situation.
Actually I know what is going on I accidentally removed some code when I added the argument parsing. The code in question set the max connections to 100000 over the default 100 I'll have another PR shortly.
I'm also watching this thread, let me know if I can help at all.
I opened another PR here https://github.com/hashrocket/websocket-shootout/pull/10. @steveklabnik feel free to fix any obvious non-rustims or inefficiencies you see in the code. I'm sure they are there.
Thanks! I was hoping to see what Rust could do, but I didn't have the expertise to write it myself.