Package: gatling
Version: 0.12cvs20111112-1
Severity: normal

Hi,

upon uploading via POST and using FASTCGI, I get:

=========================================================================
POST/PROXY 7 /upload.lua 0
Mozilla/5.0_(X11;_Linux_i686_on_x86_64;_rv:6.0.2)_Gecko/20100101_Firefox/6.0.2_Iceweasel/6.0.2
http://192.168.32.10/ 192.168.32.10
proxy_connect 7 8 127.0.0.1/50000 /upload.lua
wrote header to 8 for 7; Content-Length: 8112498
event: write POST data (8112498) to proxy on 8
7560 bytes still in H->r (0 in h->r), still to copy: 0 (8112498 in h)
wrote 7560 bytes (wanted to write 7560; had 0 still to copy)
read POST data state for 7
ARGH!!!
=========================================================================

This also occurs with files with only a few KB:

=========================================================================
POST/PROXY 11 /upload.lua 0
Mozilla/5.0_(X11;_Linux_i686_on_x86_64;_rv:6.0.2)_Gecko/20100101_Firefox/6.0.2_Iceweasel/6.0.2
http://192.168.32.10/ 192.168.32.10
proxy_connect 11 7 127.0.0.1/50000 /upload.lua
wrote header to 7 for 11; Content-Length: 14336
event: write POST data (14336) to proxy on 7
7560 bytes still in H->r (0 in h->r), still to copy: 0 (14336 in h)
wrote 7560 bytes (wanted to write 7560; had 0 still to copy)
read POST data state for 11
ARGH!!!
=========================================================================

Seems to be triggered by files above ~8KB.

Looks like the decision how much POST input is left is based on
h->still_to_copy in handle_write_proxypost(). At the same time,
H->still_to_copy is 0.

But when we have several chunks, later in read_http_post(),
H->still_to_copy (=0 although there is more data) is used as the
reference, which breaks the POST when having multiple chunks.

bye,
  Roland

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gatling depends on:
ii  libc6         2.13-21         
ii  libowfat0     0.28-5          
ii  libpolarssl0  1.0.0-1         
ii  libssl1.0.0   1.0.0e-2        
ii  zlib1g        1:1.2.3.4.dfsg-3

gatling recommends no packages.

gatling suggests no packages.

-- Configuration Files:
/etc/default/gatling changed [not included]
/etc/logrotate.d/gatling changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to