From owner-freebsd-gnome@FreeBSD.ORG Wed Feb 18 13:29:26 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 1FC1D16A4CE; Wed, 18 Feb 2004 13:29:26 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1422843D3F; Wed, 18 Feb 2004 13:29:25 -0800 (PST) (envelope-from rsato@mac.com) Received: from webmail20.mac.com (webmail20-en1 [10.13.10.175]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i1ILTPVb000820; Wed, 18 Feb 2004 13:29:25 -0800 (PST) Received: from webmail20 (localhost [127.0.0.1]) by webmail20.mac.com (8.12.6/8.12.2) with ESMTP id i1ILTPlW024318; Wed, 18 Feb 2004 13:29:25 -0800 (PST) Message-ID: <11090661.1077139765002.JavaMail.rsato@mac.com> Date: Wed, 18 Feb 2004 13:29:24 -0800 From: Randy Sato To: freebsd-gnome@freebsd.org, freebsd-alpha@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Wed, 18 Feb 2004 21:29:26 -0000 I am trying to use libsoup-2.1.5 on: 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