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

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Jul 29 11:26:15 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:  olpc-0.84 r?               
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
Changes (by martin.langhoff):

  * keywords:  olpc-0.84 => olpc-0.84 r?


Comment:

 Reading Quozl's findings in detail, I think that we need to reset the
 resolver cache when we get the msg from NM that the connection has been
 setup correctly.

 That message is caught by various classes that handle connection types,
 and then routed to model/network.py . NMSettings.set_connected() is the
 place.

 Unfortunately, the ctypes syntactic sugar that lets you call
 ctypes.CDLL('libc6.so.6').__res_init(None) directly doesn't work here. So
 we have to look up the pointer explicitly. Not a big deal.

 Patch attached. Passes tests when applied on top of os207.

 Review?

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


More information about the Bugs mailing list