From owner-freebsd-gnome@FreeBSD.ORG Wed Feb 18 18:29:49 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E02216A4CE; Wed, 18 Feb 2004 18:29:49 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB7543D1D; Wed, 18 Feb 2004 18:29:49 -0800 (PST) (envelope-from rsato@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i1J2TmBe021469; Wed, 18 Feb 2004 18:29:48 -0800 (PST) Received: from [172.18.5.184] (c-24-7-120-117.client.comcast.net [24.7.120.117]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i1J2TkCG025916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Feb 2004 18:29:47 -0800 (PST) Date: Wed, 18 Feb 2004 18:19:30 -0800 From: Randy Sato To: Joe Marcus Clarke Message-ID: <2147483647.1077128370@[172.18.5.184]> In-Reply-To: <1077146793.766.83.camel@gyros> References: <11090661.1077139765002.JavaMail.rsato@mac.com> <1077146793.766.83.camel@gyros> X-Mailer: Mulberry/3.1.2 (Mac OS X Demo) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline cc: freebsd-alpha@freebsd.org cc: freebsd-gnome@freebsd.org Subject: Re: libsoup-2 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 02:29:49 -0000 I did try 2.1.7, and found the same problem, or at least it doesn't work. I didn't take the time to dig any further. 1.99 does work. I haven't taken this any farther to see what might be the difference. My next step is probably to replace g_io_channel_read_chars () with b_io_channel_read () which is what 1.99 appears to use. Randy --On Wednesday, February 18, 2004 6:26 PM -0500 Joe Marcus Clarke wrote: > On Wed, 2004-02-18 at 16:29, Randy Sato wrote: >> I am trying to use libsoup-2.1.5 on: > > Try upgrading to 2.1.7, and see if the problem persists? Does this > happen with libsoup-1.99.26_1 from the main ports tree? > > Joe > >> >> FreeBSD kirin 5.2-RELEASE FreeBSD 5.2-RELEASE #1: Mon Jan 26 >> 11:12:57 PST 2004 root@kirin:/usr/src/sys/alpha/compile/MYKERN >> alpha >> >> The simple test program "get" fails with the message: >> >> >> : 7 Connection terminated unexpectedly >> >> >> The actual problem is much different. It appears that >> g_io_channel_read_chars() which I believe is just calling read() on >> the socket descriptor, is returning results with extraneous data. >> For instance get http://www.ximian.com should return something like: >> >> : 200 OK >> >> >> >> >> >> >> >> >> >> >> but instead I get: >> >> HTTP/1.1 200 OK >> >> Date: Tue, 17 Feb 2004 21:01:27 GMT >> >> Server: Apache/2.0.45 (Red Hat Linux) >> >> X-Powered-By: PHP/4.3.2 >> >> X-Accelerated-By: PHPA/1.3.3r2 >> >> Connection: close >> >> Transfer-Encoding: chunked >> >> Content-Type: text/html; charset=UTF-8 >> >> >> >> 1 >> >> >> >> >> 3 >> >> >> >> >> >> >> 2 >> >> >> >> >> >> 4001 >> >> >> >> >> >> These extra characters mess up read_metadata() because >> SOUP_MESSAGE_IO_DOUBLE_EOL is never found, and the read eventually >> reads till EOF and the connection terminates unexpectedly. >> >> I have glib-2.2.3_1 on my system. >> >> Tesing libsoup-2 using "get" on linux ppc and Solaris both work >> correctly. >> >> Is anybody else seeing this, or better yet any clues on how to fix >> this would be great. >> >> Randy >> >> >> >> >> >> _______________________________________________ >> freebsd-gnome@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome >> To unsubscribe, send any mail to >> "freebsd-gnome-unsubscribe@freebsd.org" > -- > PGP Key : http://www.marcuscom.com/pgp.asc > >