Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 01:21:44 -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:  <1077171704.62400.46.camel@shumai.marcuscom.com>
In-Reply-To: <11090661.1077139765002.JavaMail.rsato@mac.com>

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

[-- Attachment #1 --]
On Wed, 2004-02-18 at 16:29, Randy Sato wrote:
> 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
>  
> 
> 
> 
> 
> 
>      
>   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>       <html>
> 
> 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
> 
>     
>   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>       <html>
> 
> 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.

I just tested my libsoup-2.1.7 port on -STABLE:

FreeBSD nms-build.cisco.com 4.9-STABLE FreeBSD 4.9-STABLE #6: Sat Jan 31
21:06:36 EST 2004    
marcus@nms-build.cisco.com:/usr/obj/usr/src/sys/NMS-BUILD  i386

And -CURRENT:

FreeBSD jclarke-pc.cisco.com 5.2-CURRENT FreeBSD 5.2-CURRENT #47: Mon
Feb  9 16:38:15 EST 2004    
marcus@jclarke-pc.cisco.com:/usr/obj/usr/src/sys/JCLARKE-PC i386

And it works fine.  Note: I'm using libsoup with glib-2.3.2 from my
GNOME 2.5 repo.  I have not tested, nor will be testing libsoup with
glib-2.2.x.  Once libsoup-2.1 hits the main ports tree, glib will be at
2.4, so hopefully this shouldn't be an issue.

Joe

> 
> 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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBANFX4b2iPiv4Uz4cRAto4AJ4nqkzFlROMBm7xn9MO1M3fXogG3ACffYCu
vpBAQ197Bi1y7TRt2fa3wYo=
=F/lJ
-----END PGP SIGNATURE-----
help

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