• Guido van Rossum's avatar
    Tim saw Win2k crashes that made me realize that the input and output · 153fb529
    Guido van Rossum authored
    buffer variables here are accessed from multiple threads without any
    locking@  Add such locking: a separate lock for input and one for
    output.  XXX Note: handle_read() keeps the lock for a potentially long
    time.  But this is required to serialize incoming calls anyway.
    
    Unrelated nicety: use short_repr() when logging message output, for
    consistency with other places.
    153fb529
smac.py 8.08 KB