wahjam/wahjam — pull request #56 by teamikl (2012-06-19 04:16:16+00:00)
Title: Server browser scale

Parsing server-list had possibilities of blocking a main thread in some rare cases.
So scalability is considered with this patch.

* Cancel parsing when incoming line was too long (e.g. invalid binary data, too many members)
* Processing is yielded to a main thread each read/parse line. (e.g. too many server entries)

TODO: test with real data (not well tested, yet)
TODO: adjust maxlen value for readLine (enough size?)

----

Scalability like parse too many servers is early topic, there are no much servers now.
However there is no telling illegal situation happen.
This patch mainly aims to avoid blocking thread when obtained illegal data.

----

This series of patches contains some out topic fixes.
If it is better to divide topics, I will move the commit to another branch.