Page 1 of 1

Socket error when switching between download and upload

Posted: Fri Apr 07, 2023 3:10 am
by code_fun
When I run a download code (file transfer) and then switch over to upload, the application stops responding. I have tried using the code in the body of the program as well as calling it as a function. It didnt seem to have made any difference, the non-responding occurs regardless. I can download all day with the code and upload all day, but the minute I switch from download to upload or visa-versa, the code stops functioning and crashes the application. So I dont think its a coding error. It has something to do with the socket switching between reading and writing and then writing and reading files that initiates the problem. This might require a second socket for upload. I've been uploading and downloading with a single socket.