Socket abruptly closes after function ends

Printable View