debugging socket hang bug