fetch in autodial mode fetches only one url per server

Max Kirillov <max630-JGs/[email protected]>
Newsgroups gmane.network.wwwoffle.user
Message-ID <[email protected]>
Hi!

When I invoke "$wwwoffle -fetch" while wwwoffle is in autodial mode, the
`max-fetch-servers` fetch processes started. After each of them finished,
it does not start fetchinng another outgoing url. As a result, only
`max-fetch-servers` documents are fetched during one fetch session. The
desired behavior is fetching all documents that are to be fetched.

The version in question is 2.8e.

I did not perform the full research yet, but I suspect that the following patch
will fix the bug. Please note that I did not test it (yet)!

-----------------------------------
--- ./src/wwwoffled.c.orig    2005-05-13 09:54:56.000000000 +0700
+++ ./src/wwwoffled.c 2005-05-13 09:56:00.000000000 +0700
@@ -638,10 +638,10 @@
           if(exitval==3)
              fetching=0;
 
-          if(exitval==4 && online==1)
+          if(exitval==4 && online)
              fetching=1;
 
-          if(online!=1)
+          if(!online)
              fetching=0;
          }
 
--------------------------

-- 
Thanks for your attention!

Max
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.