From owner-freebsd-alpha@FreeBSD.ORG Thu Feb 19 16:20:20 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFC8F16A4CE; Thu, 19 Feb 2004 16:20:19 -0800 (PST) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD0A43D1D; Thu, 19 Feb 2004 16:20:19 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i1K0FHsm000586; Thu, 19 Feb 2004 19:15:17 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Randy Sato In-Reply-To: <3922073.1077235035735.JavaMail.rsato@mac.com> References: <3922073.1077235035735.JavaMail.rsato@mac.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-iTPLWHwTt9azUn3yHBQU" Organization: MarcusCom, Inc. Message-Id: <1077236424.788.42.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 19 Feb 2004 19:20:25 -0500 X-Spam-Status: No, hits=-4.8 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on creme-brulee.marcuscom.com cc: freebsd-alpha@freebsd.org cc: freebsd-gnome@freebsd.org Subject: Re: libsoup-2 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 00:20:20 -0000 --=-iTPLWHwTt9azUn3yHBQU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-02-19 at 18:57, Randy Sato wrote: > Well I found part of the problem. >=20 > soup_socket_read_until() takes a gsize * for the number of bytes read, bu= t read_metadata() passes a guint *. >=20 > Sinse this is a 64bit machine guint and gsize are not the same. >=20 > This causes problems because the boundary_found flag variable changes fro= m TRUE to FALSE when it should not. Please submit a bug to the Ximian developers? Great catch, by the way.=20 I should have pointed out, I was on i386, and I completely missed the fact that your uname said alpha. Joe >=20 > Randy >=20 > On Wednesday, February 18, 2004, at 03:26PM, Joe Marcus Clarke wrote: >=20 > >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 > > > >>=20 > >> 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 > >>=20 > >> The simple test program "get" fails with the message: > >>=20 > >>=20 > >> : 7 Connection terminated unexpectedly > >>=20 > >>=20 > >> The actual problem is much different. It appears that g_io_channel_rea= d_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: > >>=20 > >> : 200 OK > >> =20 > >>=20 > >>=20 > >>=20 > >>=20 > >>=20 > >> =20 > >> > >> > >>=20 > >> but instead I get: > >>=20 > >> HTTP/1.1 200 OK > >>=20 > >> Date: Tue, 17 Feb 2004 21:01:27 GMT > >>=20 > >> Server: Apache/2.0.45 (Red Hat Linux) > >>=20 > >> X-Powered-By: PHP/4.3.2 > >>=20 > >> X-Accelerated-By: PHPA/1.3.3r2 > >>=20 > >> Connection: close > >>=20 > >> Transfer-Encoding: chunked > >>=20 > >> Content-Type: text/html; charset=3DUTF-8 > >>=20 > >>=20 > >>=20 > >> 1 > >>=20 > >>=20 > >>=20 > >>=20 > >> 3 > >>=20 > >>=20 > >>=20 > >>=20 > >>=20 > >>=20 > >> 2 > >>=20 > >>=20 > >>=20 > >>=20 > >>=20 > >> 4001 > >>=20 > >> =20 > >> > >> > >>=20 > >> 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. > >>=20 > >> I have glib-2.2.3_1 on my system. > >>=20 > >> Tesing libsoup-2 using "get" on linux ppc and Solaris both work correc= tly. > >>=20 > >> Is anybody else seeing this, or better yet any clues on how to fix thi= s would be great. > >>=20 > >> Randy > >>=20 > >>=20 > >> =20 > >>=20 > >>=20 > >> _______________________________________________ > >> freebsd-gnome@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > >> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.or= g" > >--=20 > >PGP Key : http://www.marcuscom.com/pgp.asc > > > > > > > > --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-iTPLWHwTt9azUn3yHBQU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBANVLIb2iPiv4Uz4cRAqHPAJwMY76OapMCTADWpf+rSrjbHCvmIgCgi6Cy HpEqKg3a0PW/+7IUBTNYt4g= =ujzS -----END PGP SIGNATURE----- --=-iTPLWHwTt9azUn3yHBQU--