#10510: Support Web Sockets (easy) ----------------------------------------+---------------------------- Reporter: pulkomandy | Owner: pulkomandy Type: enhancement | Status: new Priority: normal | Milestone: R1/beta1 Component: Applications/WebPositive | Version: R1/Development Resolution: | Keywords: gsoc2014 Blocked By: | Blocking: Has a Patch: 1 | Platform: All ----------------------------------------+---------------------------- Comment (by akshay1994): There is this reason I had for keeping separate read and write threads. Both of them are now being operated in blocking-mode (It waits indefinitely, till the socket is available for writability or readability), and thus are put to sleep by the OS. If both are merged into a single thread, then for independent operation of read and write (i.e., we can write, even if nothing is available to be read and vice-versa), we'll have to shift to non-blocking operation. Continuously polling a socket, hence, will give rise to high CPU usage, by this thread. I agree separate connect and read threads is surely an overkill. I'll merge them into one, and use C++11 threads, and submit the patch in a day or two. :) -- Ticket URL: <https://dev.haiku-os.org/ticket/10510#comment:12> Haiku <https://dev.haiku-os.org> Haiku - the operating system.