realsize -1 means that there was an error while donwloading document.

I found that there is not checking in indexer.c for this. Please
find a patch here:
http://gw.udmsearch.izhnet.ru/~bar/crc32.indexer.c.patch.gz
It should the crash.



Take a look into proto.c.  UDM_NET_ERROR (it is -1) is returned only
in two places:

1. in open_host() function, when port is 0.
2. in UdmHTTPGet() function, when select() returns an error.

I have no idea what is happening.



Zenon Panoussis wrote:
> 
> Alexander Barkov skrev:
> >
> 
> > OK. Please check also this:
> 
> > print realsize
> > print *Doc
> 
> (gdb) frame 1
> #1  0x804d7f8 in UdmIndexNextURL (Indexer=0x807ca50, index_flags=4) at indexer.c:1150
> 1150                            crc32=UdmCRC32(Doc->content, (size_t)realsize);
> (gdb) print realsize
> $1 = -1
> (gdb) print *Doc
> $2 = {url_id = 12018, status = 0, size = 0, rating = 0, order = 0, referrer = 0, tag 
>= 0, hops = 3,
>   indexed = 0, url = 0x91f0548 "http://www.xs4all.nl/~fishman/ls/.", content_type = 
>0x0, title = 0x0,
>   keywords = 0x0, description = 0x0, text = 0x0, category = 0x0, content = 
>0x4021c03e "",
>   last_mod_time = 0, last_index_time = 983253816, next_index_time = 0, crc32 =  0}
> 
> Z
> 
> --
> oracle@everywhere: The ephemeral source of the eternal truth...
> ___________________________________________
> If you want to unsubscribe send "unsubscribe general"
> to [EMAIL PROTECTED]
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to