#99 open

thin stop times out and fails

Reported by maiken | May 17th, 2009 @ 11:19 AM | in Waiting for EM


  • Install ruby 1.9.1p129 (2009-05-12 revision 23412) and thin 1.2.1 on Ubuntu 8.04 LTS
  • Write a hello-world rackup file and save as hello_world.ru
app = proc do |env|
    'Content-Type' => 'text/html',
    'Content-Length' => '2'

run app
  • Start a cluster of thin processes: "thin start -s 3 -R hello_world.ru"
  • Now try to stop them: "thin stop -s 3"


Stopping server on ... 
Sending QUIT signal to process 31975 ... 
Stopping server on ... 
Sending QUIT signal to process 31988 ... 
Stopping server on ... 
Sending QUIT signal to process 32001 ... 

thin processes are still running.

the thin processes aren't responsive to a regular "kill ", either.
However, if I load from their respective ports, they process the quit request and exit. That is, if, while "thin stop" is trying to stop the port-3000 daemon, I do an HTTP load against port 3000, the process will exit. Without the load, the process will run forever.

Expect: thin processes are responsive to quit requests.

If you have difficulty reproducing the issue let me know how to take additional traces.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket