Timeout parameter missing in scserve when creating smart server

Bug #1009594 reported by Servilio Afre Puentes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sloecode
New
Undecided
Unassigned

Bug Description

The repository server doesn't work at all because of this. Adding the missing parameter solves the issue.

Revision history for this message
Servilio Afre Puentes (servilio) wrote :
Revision history for this message
Jeffery von Ronne (vonronne) wrote :

I think this may be connected to an API change in bzr 2.5b2:

"Plugins that implement custom protocols for bzr serve should now also take an argument timeout. This is used by the the bzr protocol to close a connection if a client has been idle for more than X seconds. (Default 5minutes). (John Arbash Meinel)"

http://doc.bazaar.canonical.com/bzr.dev/en/release-notes/bzr-2.5.html#id45

It seems no default is being supplied, at least in bzr 2.5.1-0ubuntu2 from precise-updates as the server is being invoked by sc smart server. A natural place for the default to have been supplied would be in the parameters of the __init__ method
for SmartServerPipeStreamMedium on line 425 of /usr/lib/python2.7/dist-packages/bzrlib/smart/medium.py.

Revision history for this message
Thierry Durandy (tdurandy) wrote :

Being locked, I made this dummy patch into .../sloecode/bzrplugins/scserve/__init__.py line 56 :

        if inet:
            # Limit sessions to 1 hour
            timeout=3600.0
            smart_server = medium.SmartServerPipeStreamMedium(
                sys.stdin, sys.stdout, transport, timeout)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.