2007/4/19, qi wu <[EMAIL PROTECTED]>:
> I am using Fetcher2, pls. refer the code fragment below:
>
> if (newUrl != null && !newUrl.equals(fit.url.toString())) {
> ...

I'd have to take a look at the surrounding code to really understand
what the code does. I'm sure it's perfectly obvious to the authors and
they can't understand what's not to understand, though. :)

>           if (LOG.isDebugEnabled()) {
>            LOG.debug(" - protocol redirect to "+ redirUrl + " (fetching 
> now)");
>      }

This might be improved like so:

           if (LOG.isDebugEnabled()) {
            LOG.debug(" - protocol redirect to
".concat(redirUrl).concat(" (fetching now)"));
      }


> add statement  to check whether redirUrl and fit.url are from the same 
> host.I'll provide a patch through JIRA soon,but it need some time for me to 
> learn how to provide patch.
> If you are too lazy to change code, just set "http.max.redirect" in your 
> nutch site configure to 0 also should work.

No, not lazy, but sorely short on time: http.max.redirect is a great
hint, thanks.

Thank you for the help and the patch. Cheers,
t.n.a.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to