xbmc/xbmc — pull request #2353 by Montellese (2013-03-01 16:56:26+00:00)
Title: websocket: fix inability to handle multiple queued websocket frames/messages (fixes #13848)

With the current code the websocket implementation always expects one frame at the time in the TCP socket buffer but that's obviously not always the case as demonstrated by http://trac.xbmc.org/ticket/13848. These changes does away with that assumption and runs a loop to get messages and frames as long as there is data available from the TCP socket buffer.