[Bugs] #1940 UNSP: failed registration breaks registration for the session

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed May 12 21:50:59 EDT 2010


#1940: failed registration breaks registration for the session
------------------------------------------+---------------------------------
    Reporter:  dsd                        |          Owner:  tomeu                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by quozl):

 This is because /etc/resolv.conf is changed since the shell first read it,
 and the socket.create_connection() call in httplib is using libc cached
 resolv.conf data.

 jarabe.desktop.schoolserver.register_laptop() calls
 xmlrpclib.ServerProxy() which calls
 xmlrpclib.Transport.make_connection() which calls
 httplib.HTTPConnection.connect() which calls
 socket.create_connection() with the hostname.

 Solutions might be:
  * convincing python to call res_init() again,
  * moving this function to a process that is created at the time it is
 required,
  * patching glibc to stat() resolv.conf and notice changes, which is what
 some distributions do.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1940#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list