Skip to content Skip to sidebar Skip to footer

Sending File Through Sockets Python

I'm trying to send files through sockets but my server is hanging when the file is sent completely. I tried a lot of way but here is my code. Client : def download_file(self, file_

Solution 1:

You forgot to self.s.close() in the client. Currently the server has no indication that not more data follow, so it must wait for more to come.


Post a Comment for "Sending File Through Sockets Python"