From patchwork Mon Nov 2 16:29:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 37439 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EE77CB7C1D for ; Tue, 3 Nov 2009 03:32:58 +1100 (EST) Received: from localhost ([127.0.0.1]:39438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4zpu-0003Cm-KB for incoming@patchwork.ozlabs.org; Mon, 02 Nov 2009 11:32:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4znv-0003B7-Hf for qemu-devel@nongnu.org; Mon, 02 Nov 2009 11:30:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4zno-000374-Bk for qemu-devel@nongnu.org; Mon, 02 Nov 2009 11:30:48 -0500 Received: from [199.232.76.173] (port=43466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4znn-00036p-Kv for qemu-devel@nongnu.org; Mon, 02 Nov 2009 11:30:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32315) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4znn-0006Hs-61 for qemu-devel@nongnu.org; Mon, 02 Nov 2009 11:30:43 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA2GUfe0002126 for ; Mon, 2 Nov 2009 11:30:41 -0500 Received: from localhost (vpn-242-196.phx2.redhat.com [10.3.242.196]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA2GUcrT009676; Mon, 2 Nov 2009 11:30:40 -0500 From: Amit Shah To: qemu-devel@nongnu.org Date: Mon, 2 Nov 2009 21:59:58 +0530 Message-Id: <1257179398-22110-1-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Amit Shah Subject: [Qemu-devel] [PATCH] char: tcp: increase size of buffer that holds data to be sent out X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 1k is too less; at least send out 4k of data from a chardev. Signed-off-by: Amit Shah --- qemu-char.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 0fd402c..34c0a63 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1996,7 +1996,7 @@ static void tcp_chr_read(void *opaque) { CharDriverState *chr = opaque; TCPCharDriver *s = chr->opaque; - uint8_t buf[1024]; + uint8_t buf[4096]; int len, size; if (!s->connected || s->max_size <= 0)