public
Description:
Homepage:
Clone URL: git://github.com/tobowers/broken-multi-threaded-rack.git
tobowers (author)
Wed May 27 14:36:47 -0700 2009
commit  fc9c2c8fd85477627e196bbafd32b8ac33587987
tree    598276e479256d39921079afce7c072bfd636b82
parent  2a6ea46ff75bfdadb6c35883aaf1412041e5a6e1
name age message
file .gitignore Wed May 27 13:21:32 -0700 2009 this app doesn't work [tobowers]
file README Wed May 27 13:30:52 -0700 2009 deploy step [tobowers]
file Rakefile Wed May 27 12:23:29 -0700 2009 initial checkin [tobowers]
directory app/ Loading commit data...
directory config/ Wed May 27 14:36:47 -0700 2009 no db, more logging [tobowers]
directory doc/ Wed May 27 12:23:29 -0700 2009 initial checkin [tobowers]
file post_file.txt Wed May 27 13:29:40 -0700 2009 repeat steps [tobowers]
directory public/ Wed May 27 12:23:29 -0700 2009 initial checkin [tobowers]
directory script/ Wed May 27 12:23:29 -0700 2009 initial checkin [tobowers]
directory test/ Wed May 27 13:21:32 -0700 2009 this app doesn't work [tobowers]
directory vendor/ Wed May 27 12:23:29 -0700 2009 initial checkin [tobowers]
README
install apache ab

change database.yml (just so it doesn't error - don't need a db)

deploy your app to glassfish (jruby -S warble && asadmin deploy thread_test.war)

cd into app directory and
ab -p post_file.txt -n 10 -c 3 
http://<your_glassfish_server>/thread_test/thread_test/test?data=aklsjdfakjsdfalkjsdflkasdjflkasjdflksj

you will notice that between 1-2 requests will have a nil request.raw_post