socket closed

when program fetch data, it will raise error “socket closed”

what cause it?