Subject: gatling: -c option breaks FastCGI Package: gatling Version: 0.12cvs20120114-2 Severity: important
I followed /usr/share/doc/gatling/README.php to setup gatling using php. Doing this I found out that if I use -c option to chroot gatling to a certain directory after binding it breaks proxying to my php-cgi. This works fine: gatling -v -D -S -F -U -u nobody -O 'F/127.0.0.1/8001/\.php' This doesn't work: gatling -v -D -S -F -U -u nobody -c /var/www -O 'F/127.0.0.1/8001/\.php' Changing the order of the command line option doesn't help. I appended the output of a request to "index.php" with the content <?php echo phpinfo(); ?> -- System Information: Debian Release: 6.0.4 APT prefers stable APT policy: (990, 'stable'), (800, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-0.bpo.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/dash Versions of packages gatling depends on: ii libc6 2.11.3-2 Embedded GNU C Library: Shared lib ii libowfat0 0.28-5 Reimplementation of libdjb, shared ii libpolarssl0 1.1.1-1 lightweight crypto and SSL/TLS lib ii libssl1.0.0 1.0.0g-1 SSL shared libraries ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime gatling recommends no packages. gatling suggests no packages. -- Configuration Files: /etc/default/gatling changed [not included] -- no debconf information -- Please avoid sending me Microsoft Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
/var/www# gatling -v -D -S -F -U -u nobody -c /var/www -O 'F/127.0.0.1/8001/\.php' starting_up 0 :: 80 accept 6 127.0.0.1 36108 1 http accept 7 127.0.0.1 36109 2 http GET/PROXY 6 /index.php 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 [no_referrer] localhost proxy_connect 6 8 127.0.0.1/8001 /index.php accept 9 127.0.0.1 36111 3 http cgiproxy_read0 8 410 765 close/proxydone 6 410 877 GET/404 7 /favicon.ico 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 [no_referrer] localhost request_done 7 326 169
/var/www# gatling -v -D -S -F -U -u nobody -O 'F/127.0.0.1/8001/\.php' starting_up 0 :: 80 accept 6 127.0.0.1 36099 1 http GET/PROXY 6 /index.php 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 [no_referrer] localhost proxy_connect 6 7 127.0.0.1/8001 /index.php cgiproxy_read0 7 410 49931 close/proxydone 6 410 50729 accept 6 127.0.0.1 36101 2 http GET/PROXY 6 /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 http://localhost/index.php localhost proxy_connect 6 7 127.0.0.1/8001 /index.php accept 8 127.0.0.1 36103 3 http GET/PROXY 8 /index.php?=SUHO8567F54-D428-14d2-A769-00DA302A5F18 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 http://localhost/index.php localhost proxy_connect 8 9 127.0.0.1/8001 /index.php cgiproxy_read0 7 428 854 close/proxydone 6 428 3489 cgiproxy_read0 9 428 854 close/proxydone 8 428 3779 accept 6 127.0.0.1 36105 4 http GET/PROXY 6 /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 http://localhost/index.php localhost proxy_connect 6 7 127.0.0.1/8001 /index.php cgiproxy_read0 7 428 854 close/proxydone 6 428 3111 accept 6 127.0.0.1 36107 5 http GET/404 6 /favicon.ico 0 Mozilla/5.0_(X11;_Linux_x86_64)_AppleWebKit/535.24_(KHTML,_like_Gecko)_Chrome/19.0.1054.0_Safari/535.24 [no_referrer] localhost request_done 6 326 169 timeout 6 close/timeout 6