Hello.

On the dialup connection, there is often good to request
some page(s) offline then fetch it. I think it would be
usable to implement a mode which allows to browse th cache
while fetching. Unfortunately, now it is impossible: in the
online mode - all requests goes to the net, in the autodial
more WWWOFFLE refuses to fetch.

I coud hardly imagine that someone may want to surely get
the fresh version of the page (in the case, why not press
'reload'). But I cannot imagine at all that fetching must be
disallowed when connection to the network is expected to be
possible (autodial mode). Due to this, I've hacked wwwoffle
a bit to allow it to fetch in autodial mode - this is
implemented as a quite artifical checking.

I attached a patch with the hack. I don't know is this a
right way. But I think something sould be done...

Max.
--- connect.c.orig      Wed Mar  7 00:35:52 2001
+++ connect.c   Wed Mar  7 00:38:58 2001
@@ -165,8 +165,8 @@
    {
     if(fetch_fd!=-1)
        write_string(client,"WWWOFFLE Already fetching.\n");
-    else if(online!=1)
-       write_string(client,"WWWOFFLE Must be online to fetch.\n");
+    else if(online==0)
+       write_string(client,"WWWOFFLE Must be online or autodial to fetch.\n");
     else
       {
        write_string(client,"WWWOFFLE Now Fetching.\n");
@@ -309,7 +309,7 @@
 
     n_servers++;
 
-    if(online==1 && !browser)
+    if(online!=0 && !browser)
       {
        for(i=0;i<max_fetch_servers;i++)
           if(fetch_pids[i]==0)
--- wwwoffles.c.orig    Wed Mar  7 00:40:02 2001
+++ wwwoffles.c Wed Mar  7 09:28:10 2001
@@ -100,7 +100,7 @@
 
  if(online==1 && browser)
     mode=Real;
- else if(online==1 && !browser)
+ else if(online!=0 && !browser)
     mode=Fetch;
  else if(online==-1 && browser)
     mode=SpoolOrReal;

Reply via email to