Re: Cong VFS
David Malcolm <[email protected]>
| Newsgroups | gmane.editors.conglomerate.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2004-10-20 at 11:06 +0100, Jeff Martin wrote: > I've been fiddling again trying to get conglomerate to work with webdav. Excellent - that would be very cool. > In theory this should just work but, it don't. > > In cong-vfs.c there's a couple of lines which convert relative uri to to > absolute by adding file:// to the front. This however knackers things > starting http://. So I took these lines out. Relative uri still work > fine so I'm not quite sure why these lines where there (may be an old > bug work around?) I think it was a bugfix for running Conglomerate from the command line, specifying a file to open. So perhaps this code is in the wrong place, and should be in the command-line arg parsing routine? > > The problem I have now is gnome_vfs_read returning zero bytes read in > cong_vfs_read_bytes. I've run a packet sniff and the document is begin > returned fine from the web server, but never makes it out of > gnome_vfs_read. > > Can anyone shed some light on things? Not sure on this one. gnome_vfs_read is allowed to return less than the number of bytes requested, in which case we're meant to loop (similar to fread IIRC) - assuming there's no error. It might be worth ensuring you have debug info for your gnome-vfs and stepping inside the call. IIRC there are some known issues with Conglomerate/gnome vfs interaction; can't rememeber the bugzilla IDs offhand. >