I've changed the whole http function to:

(de http (S)
   (setq *Xml
         (in S
            (until (eof) (link (line T))))))
   (and S (close S) (task S)))

I'm not even trying to do anything with the headers. However with an
http function looking like this I'm not even able to access the server
directly on http://localhost:3000/@pubsub it just hangs and refuses to
return anything.

As expected I'm of course getting things where they are supposed to be
now, the four last lines of the output:

  line =3D "</feed>"
  link : "</feed>"
  link =3D "</feed>"
  task : 40 NIL
  task =3D NIL

I also tried simply replacing with

(when *Xml
                     (setq *Xml
                           (until (eof) (link (line T))))))

in the real http but as we expected the problem of not finishing with
executing @pubsub is still there.

On Thu, Dec 17, 2009 at 10:50 AM, Alexander Burger <a...@software-lab.de> wr=
> On Wed, Dec 16, 2009 at 10:15:22PM +0100, Henrik Sarvell wrote:
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (make
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(until (eof) (lin=
e T) (link @)))))
> Here might be the problem: The (link @) has no definite value in '@', as
> there is no preceding flow function returning non-NIL (as described
> under "Flow functions" in "doc/ref.html#atres").
> So better would be
> =A0 (make
> =A0 =A0 =A0(until (eof)
> =A0 =A0 =A0 =A0 (link (line T)) ) )
> Note that in the previous case of
> =A0 (make
> =A0 =A0 =A0(while (line T)
> =A0 =A0 =A0 =A0 (link @) ) )
> the situation was different, as 'while' always set the (non-NIL) value
> of '@' appropriately.
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to