[prev in list] [next in list] [prev in thread] [next in thread] 

List:       intermezzo-devel
Subject:    Re: curl stuff
From:       Robert Read <rread () computer ! org>
Date:       2002-05-16 7:58:34
[Download RAW message or body]

Looks like the code to map HTTP status codes to errno values is not working.
We need to differentiate between real protocol errors such as file not
found, and intermittent network errors.  This is done by returning a
negative value for network errors and a positive errno for real errors.
Is_run_context will retry if when it gets a negative, and stop for >=0.

The function is_http_to_errno does is being used now to do this. Perhaps
this is not being called in your code?  I'll look at the patch tomorrow,
this is probably an easy fix.

robert

On 5/15/02 23:25, "Andres Salomon" <dilinger@mp3revolution.net> wrote:

> Ok, here's the curl stuff I've been working on.  It seems to work; I can
> replicate between server/client; however, using vim within the client
> crashes intersync.   The .swp file was created successfully on the
> server, but the server then freaks out w/ the following:
> 
> 
> (upcall.c:upc_dispatch L105): [UPC KML : Uniq 36 : PID 8342 : UID 0 Path
> : Fset rootfset Offset 2112 : First recno 13 : Last recno 14 : Async 1]
> (upcall.c:upc_dispatch L410): holder: <0x806e180> peer: <0x806e180>
> 192.168.0.2:2432 55b30c9b-df27-4560-a2a8-a6f6824d744d
> (request.c:is_get_kml_range L207):  00000013 SETATTR  /Makefile.am
> (request.c:is_get_kml_range L207):  00000014  UNLINK  / Makefile.am~
> (request.c:is_get_kml_range L207):  00000015   CLOSE  /.Makefile.am.swp
> (upcall.c:upc_dispatch L105): [UPC KML : Uniq 37 : PID 8343 : UID 0 Path
> : Fset rootfset Offset 2256 : First recno 14 : Last recno 15 : Async 1]
> (upcall.c:upc_dispatch L410): holder: <0x806e180> peer: <0x806e180>
> 192.168.0.2:2432 55b30c9b-df27-4560-a2a8-a6f6824d744d
> (upcall.c:upc_dispatch L105): [UPC KML : Uniq 38 : PID 8343 : UID 0 Path
> : Fset rootfset Offset 2420 : First recno 15 : Last recno 16 : Async 1]
> (upcall.c:upc_dispatch L410): holder: <0x806e180> peer: <0x806e180>
> 192.168.0.2:2432 55b30c9b-df27-4560-a2a8-a6f6824d744d
> (upcall.c:upc_dispatch L105): [UPC BACKFETCH : Uniq 39 : PID 8343 : UID
> 0 Path /.Makefile.am.swp : Fset rootfset Offset 0 : First recno 0 : Last
> recno 0 : Async 0]
> (session.c:is_run_context L193): doing backfetch
> (request.c:is_http_get L70): Fetching uri
> 'http://192.168.0.2:2432/cache/..iopen../...ino:48ad:0' (range 0-0
> (request.c:is_http_get L75): httpclient_fetch() failed: HTTP not found
> (session.c:is_run_context L241): JOB_BACKFETCH failed, rc: -1
> (session.c:is_run_context L193): doing backfetch
> 
> (continues doing backfetch a bunch more times before giving up and
> aborting.)
> The "HTTP not found" error (HTTP_NOT_FOUND in curl) is a 404.  Vim
> _may_ have removed the file out from under apache; I haven't looked
> into it much yet, and I'm tired.  Bugfixes welcome.  :)
> 
> This patch is rather large, due to having had to re-run automake and
> autoconf, so I gzipped it.


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
_______________________________________________
intermezzo-devel mailing list
intermezzo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/intermezzo-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic