[drakma-devel] drakma:http-request sometimes returns nil
Edi Weitz
edi at agharta.de
Tue Apr 10 06:13:46 UTC 2007
On Mon, 9 Apr 2007 20:14:01 -0400, "Andrei Stebakov" <lispercat at gmail.com> wrote:
> I am using SBCL 1.04. I've just upgraded to latest hunchentoot,
> drakma etc... It happens when I upload a file using POST
> request. Most of the times the http-request just works and returns
> the result which I parse and it's meaningful. Occasionally (1 out of
> 10 times) the http-request returns nil. To verify it, I tested it
> not from the web, but from the slime propt. It it took me a while to
> understand why my web app was misbehaving sometimes.
> For now I put a workaround like
> (loop for i from 0 to 5 while (not http-request-result) do
> (setq http-request-result (drakma:http-request ....))
> which works.
> I'd like to know if it's an expected behavior of the http request
Of course not.
> or is there something I/we could do to fix it?
I'd need a reproducible test case to say more about it.
More information about the Drakma-devel
mailing list