Socket timeout fix