Nico de Jager | 9 Jan 2008 13:57

Re: CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE

Edi Weitz <edi <at> agharta.de> writes:

> On Wed, 12 Dec 2007 13:34:14 +0200, Nico de Jager <ndj <at> hivsa.com> wrote:
>
>> I have a fingerprint scanning application, that uploads fingerprint
>> images using Drakma to a Hunchentoot server. Everything works great
>> as long as I don't use a secure connection. With https, I get a
>> CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE condition on the
>> server, and "Timeout while writing 8192 bytes to
>> #<COMM:SOCKET-STREAM >" on the client. Sometimes the uploads are
>> successful with https, though.
Sorry for only replying now, I was away. Let me know if  need to repost my original message.

> It's hard to say something about this from here.  Are you able to
> generate a small, self-contained example that exposes the problem?
Yes, see the attached program. I also included a couple of images that fails _most_ of the time.

> What did you do to isolate the error?
Uhm, the attached example simply tries to upload a few image files (evaluate the function test-upload).
*Important*: From Linux to XP/Linux all uploads work for both secure and non-secure attempts. From XP
only non-secure uploads work. Secure uploads from XP will work about 5% of the time. I even tried it on
different machines.

>  Does it work without the trivial-ldap module being loaded?
No, I removed trivial-ldap completely in the example.

>  Does it work with another Lisp
> implementation on the client or on the server side?
Uploads from
 LispWorks (Win32) to LispWorks or SBCL on Linux fails.
(Continue reading)

Jonathon McKitrick | 11 Jan 2008 20:38
Picon
Favicon

Odd LW error not in SBCL


I'm running a drakma-based app that gives an error on LispWorks, but not
on SBCL.

Error: End of file while reading stream #<FLEXI-STREAMS::FLEXI-BINARY-LATIN-1-IO-STREAM 200ED20F>.

This is after a POST request, and the same error never occurs with SBCL.  Is
there something else I should be setting when calling http-request in LW
versus SBCL?

Jonathon McKitrick
--
'Java is a fine language, for low values of fine.'
Edi Weitz | 11 Jan 2008 23:48
Picon
Favicon

Re: Odd LW error not in SBCL

On Fri, 11 Jan 2008 19:38:56 +0000, Jonathon McKitrick <jcm <at> sdf.lonestar.org> wrote:

> I'm running a drakma-based app that gives an error on LispWorks, but
> not on SBCL.
>
> Error: End of file while reading stream #<FLEXI-STREAMS::FLEXI-BINARY-LATIN-1-IO-STREAM 200ED20F>.
>
> This is after a POST request, and the same error never occurs with
> SBCL.  Is there something else I should be setting when calling
> http-request in LW versus SBCL?

No, not really.  If SBCL and LispWorks don't behave the same, then I'd
say it's a bug.  Do you have a URL and a way to reproduce this?
Victor Kryukov | 14 Jan 2008 02:33
Picon
Gravatar

END-OF-FILE

Hello list,

I've the following condition

end of file on #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
   [Condition of type END-OF-FILE]

while trying to do

(drakma:http-request "http://www.bluishcoder.co.nz/atom.xml")

Below is the relevant backtrace part:

  0: (READ-CHAR #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
T NIL #<unused argument>)
  1: (CHUNGA:READ-LINE* #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM
{10050A5171}> NIL)
  2: (DRAKMA::READ-STATUS-LINE
#<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}> NIL)
  3: ((LABELS DRAKMA::FINISH-REQUEST) NIL NIL)
  4: (DRAKMA:HTTP-REQUEST "http://www.bluishcoder.co.nz/atom.xml")

I can access that URI without any problems using my browser. I'm
slightly confused what's going on - could somebody please provide any
comments?

I'm using DRAKMA v. 0.11.1 and SBCL 1.0.13 on x86-64 linux (Ubuntu 7.10).

Best Regards,
Victor.
(Continue reading)

Edi Weitz | 14 Jan 2008 03:02
Picon
Favicon

New release 0.11.2 (Was: CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE)

On Wed, 09 Jan 2008 14:57:37 +0200, Nico de Jager <ndj <at> hivsa.com> wrote:

> Uhm, the attached example simply tries to upload a few image files

I could reproduce the example and it seems this is a bug in LispWorks
(which I've reported to LW support).  The new release doesn't really
fix the problem (I can't do that), but it tries to deal with it in a
more or less reasonable way.  Please try it.

Note that the new release is only relevant for LispWorks users.  Users
of other Lisps can as well keep 0.11.1.

Thanks for the report,
Edi.
Edi Weitz | 14 Jan 2008 03:07
Picon
Favicon

Re: END-OF-FILE

On Sun, 13 Jan 2008 19:33:52 -0600, "Victor Kryukov" <victor.kryukov <at> gmail.com> wrote:

> I've the following condition
>
> end of file on #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
>    [Condition of type END-OF-FILE]
>
> while trying to do
>
> (drakma:http-request "http://www.bluishcoder.co.nz/atom.xml")
>
> Below is the relevant backtrace part:
>
>   0: (READ-CHAR #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
> T NIL #<unused argument>)
>   1: (CHUNGA:READ-LINE* #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM
> {10050A5171}> NIL)
>   2: (DRAKMA::READ-STATUS-LINE
> #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}> NIL)
>   3: ((LABELS DRAKMA::FINISH-REQUEST) NIL NIL)
>   4: (DRAKMA:HTTP-REQUEST "http://www.bluishcoder.co.nz/atom.xml")
>
> I can access that URI without any problems using my browser. I'm
> slightly confused what's going on - could somebody please provide
> any comments?

  http://weitz.de/drakma/#prob

That does the trick for me.

(Continue reading)

Victor Kryukov | 14 Jan 2008 03:16
Picon
Gravatar

Re: END-OF-FILE

Thanks Edi -

(let ((chunga:*accept-bogus-eols* t))
	    (drakma:http-request "http://www.bluishcoder.co.nz/atom.xml"))

did the job.

Best Regards,
Vcitor.

On Jan 13, 2008 8:07 PM, Edi Weitz <edi <at> agharta.de> wrote:
> On Sun, 13 Jan 2008 19:33:52 -0600, "Victor Kryukov" <victor.kryukov <at> gmail.com> wrote:
>
> > I've the following condition
> >
> > end of file on #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
> >    [Condition of type END-OF-FILE]
> >
> > while trying to do
> >
> > (drakma:http-request "http://www.bluishcoder.co.nz/atom.xml")
> >
> > Below is the relevant backtrace part:
> >
> >   0: (READ-CHAR #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}>
> > T NIL #<unused argument>)
> >   1: (CHUNGA:READ-LINE* #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM
> > {10050A5171}> NIL)
> >   2: (DRAKMA::READ-STATUS-LINE
> > #<FLEXI-STREAMS::FLEXI-LATIN-1-IO-STREAM {10050A5171}> NIL)
(Continue reading)

Nico de Jager | 14 Jan 2008 10:29

Re: New release 0.11.2 (Was: CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE)

Edi Weitz <edi <at> agharta.de> writes:

> On Wed, 09 Jan 2008 14:57:37 +0200, Nico de Jager <ndj <at> hivsa.com> wrote:
> Note that the new release is only relevant for LispWorks users.  Users
> of other Lisps can as well keep 0.11.1.

Many thanks, Edi. But it appears that you forgot to upload the new version to your site (no, that's
impossible - maybe you just decided to take a break at 3am and did not do it yet :-). Both asdf-install and a
manual download still gives me version 0.11.1 (Just the change log on your site was updated).

Thanks.
Nico
Edi Weitz | 14 Jan 2008 17:47
Picon
Favicon

Re: New release 0.11.2

On Mon, 14 Jan 2008 11:29:50 +0200, Nico de Jager <ndj <at> hivsa.com> wrote:

> But it appears that you forgot to upload the new version to your
> site (no, that's impossible - maybe you just decided to take a break
> at 3am and did not do it yet :-). Both asdf-install and a manual
> download still gives me version 0.11.1

That's strange - I get the new one.  See below.

> (Just the change log on your site was updated).

That's actually a good sign that the new tarball is online.  The
change log is automatically unpacked from the tarball and not uploaded
separately.

Edi.

edi <at> groucho:/tmp$ wget http://weitz.de/files/drakma.tar.gz
--17:45:21--  http://weitz.de/files/drakma.tar.gz
           => `drakma.tar.gz'
Resolving weitz.de... 81.169.156.108
Connecting to weitz.de|81.169.156.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42,464 (41K)
[application/x-tar]

100%[=============================================================================================================>]
42,464        --.--K/s             

17:45:21 (344.32 KB/s) - `drakma.tar.gz' saved [42464/42464]
(Continue reading)

Edi Weitz | 14 Jan 2008 19:54
Picon
Favicon

New release 0.11.3

On Mon, 14 Jan 2008 17:47:58 +0100, Edi Weitz <edi <at> agharta.de> wrote:

> That's strange - I get the new one.  See below.

But I've just released a new version anyway which "refines" the
previous change a bit.  Again, only relevant for LispWorks users.

Gmane