Issue #4762 has been updated by Erik Auerswald.

We have tried to evaluate puppet for use over a satellite link. This was our 
first try at using puppet at all, as such we set up a test environment using 
webrick. While it worked over LAN, puppet broke trying to use the satellite 
link.

Increasing the timeout (as suggested e.g. in 
http://groups.google.com/group/puppet-users/browse_thread/thread/291d70aa73eb3ab5/a4b0907b452ef084#a4b0907b452ef084
 and http://comments.gmane.org/gmane.comp.sysutils.puppet.user/29788) did fix 
this.

We set the timeout to 5.1s since a single round trip takes about 1s using our 
satellite provider.

Without increasing the default timeout quite a few people will never reach a 
stage where they would think about replacing webrick for scalability issues. ;-)
----------------------------------------
Bug #4762: Speed of light interfering with normal puppet operation
https://projects.puppetlabs.com/issues/4762

Author: John Ferlito
Status: Investigating
Priority: High
Assignee: 
Category: Doh!
Target version: 
Affected Puppet version: 0.25.5
Keywords: speed of light in a vacuum 
Branch: 


Puppet::Network::HTTP::WEBrick doesn't wait long enough for the connection to 
establish

In puppet/network/http/webrick.rb

there is the following code

       @mutex.synchronize do
            raise "WEBrick server is already listening" if @listening
            @listening = true
            @thread = Thread.new {
                @server.start { |sock|
                    raise "Client disconnected before connection could be 
established" unless IO.select([sock],nil,nil,0.1)
                    sock.accept
                    @server.run(sock)
                }
            }
            sleep 0.1 until @server.status == :Running
        end
    end 

The select only waits for 100ms. In my situation I have servers in US and 
puppet masters in Australia. 100ms is nowhere near long enough for the 
connection to establish

Maybe 2-5 seconds would be more appropriate



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to