Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2004 18:26:33 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Randy Sato <rsato@mac.com>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: libsoup-2
Message-ID:  <1077146793.766.83.camel@gyros>
In-Reply-To: <11090661.1077139765002.JavaMail.rsato@mac.com>
References:  <11090661.1077139765002.JavaMail.rsato@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-8VT9NSLTbEzyDQxHy06v
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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_read_c=
hars() 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
>   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>       <html>
>=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
>   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>       <html>
>=20
> These extra characters mess up read_metadata() because SOUP_MESSAGE_IO_DO=
UBLE_EOL is never found, and the read eventually reads till EOF and the con=
nection 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 correctly=
.
>=20
> Is anybody else seeing this, or better yet any clues on how to fix this w=
ould 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.org"
--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-8VT9NSLTbEzyDQxHy06v
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)

iD8DBQBAM/Spb2iPiv4Uz4cRAqB0AJ9lX65sieN/cO1A1HqDVbbop7FW/wCfeiLN
2OcisEK5H8z63VT0x/Ca1PI=
=Z1UO
-----END PGP SIGNATURE-----

--=-8VT9NSLTbEzyDQxHy06v--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1077146793.766.83.camel>