Received: from eggs.gnu.org ([208.118.235.92]:55483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TimOT-0000CP-CG for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:30:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TimON-0007RX-5H for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:30:37 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:59778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TimOM-0007RF-Uw for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:30:31 -0500 Received: by mail-bk0-f45.google.com with SMTP id jk13so346334bkc.4 for ; Wed, 12 Dec 2012 05:30:28 -0800 (PST) Date: Wed, 12 Dec 2012 14:30:26 +0100 From: Stefan Hajnoczi Message-ID: <20121212133026.GA16270@stefanha-thinkpad.redhat.com> References: <1354892195-18332-1-git-send-email-thardeck@suse.de> <1354892195-18332-3-git-send-email-thardeck@suse.de> <20121211100409.GD796@stefanha-thinkpad.muc.redhat.com> <50C856A0.5060902@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50C856A0.5060902@suse.de> Subject: Re: [Qemu-devel] [PATCH 2/3 v4] vnc: added initial websocket protocol support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tim Hardeck Cc: aliguori@us.ibm.com, github@martintribe.org, qemu-devel@nongnu.org, alevy@redhat.com, kraxel@redhat.com, corentin.chary@gmail.com On Wed, Dec 12, 2012 at 11:04:16AM +0100, Tim Hardeck wrote: > On 12/11/2012 11:04 AM, Stefan Hajnoczi wrote: > > On Fri, Dec 07, 2012 at 03:56:34PM +0100, Tim Hardeck wrote: > > > > Thanks for addressing my review comments. > > > >> @@ -1328,13 +1358,14 @@ void vnc_client_read(void *opaque) > >> > >> void vnc_write(VncState *vs, const void *data, size_t len) > >> { > >> - buffer_reserve(&vs->output, len); > >> + buffer_reserve(&vs->output, len); > >> > >> - if (vs->csock != -1 && buffer_empty(&vs->output)) { > >> - qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs); > >> - } > >> + if (vs->csock != -1 && buffer_empty(&vs->output)) { > >> + qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, > >> + vnc_client_write, vs); > >> + } > >> > >> - buffer_append(&vs->output, data, len); > >> + buffer_append(&vs->output, data, len); > > > > QEMU uses 4 spaces for indentation. > I don't know how I missed that, probably during the removal of the > previous parts, but `scripts/checkpatch.pl` didn't complain either. > > Is the rest of the patchset fine? A VNC expert needs to review it. I only looked at coding style, logic bugs, etc but didn't review VNC server or WebSocket protocol specifics. Corentin or Anthony? Reviewed-by: Stefan Hajnoczi