ftplib upload hangs?
Posted: Fri Nov 20, 2015 7:18 pm
Hi All,
I've been working on a raspberrypi/python installation which can take a photo and post it to a website with a buttonpress. I'm uploading it with ftplib.
Now weird thing is; when have cabled internet all works dandy but when I have a connection via wifi the upload negotiation goes well until ftp command/response '150 - ready for upload' (a trace from setting ftplib.set_debuglevel(2) ). Now the Pi should actually send the data but on wifi...it doesnt... I tried pasv true/false, no difference....
I tested the connection and normal browser traffic works, but I have no idea why the actual FTP upload does not initiate.
Another problem is that this FTP-wait freezes the program and I haven't found a way to exit this wait loop on a timeout or something.
Has anyone had this same artifacts?
I've been working on a raspberrypi/python installation which can take a photo and post it to a website with a buttonpress. I'm uploading it with ftplib.
Now weird thing is; when have cabled internet all works dandy but when I have a connection via wifi the upload negotiation goes well until ftp command/response '150 - ready for upload' (a trace from setting ftplib.set_debuglevel(2) ). Now the Pi should actually send the data but on wifi...it doesnt... I tried pasv true/false, no difference....
I tested the connection and normal browser traffic works, but I have no idea why the actual FTP upload does not initiate.
Another problem is that this FTP-wait freezes the program and I haven't found a way to exit this wait loop on a timeout or something.
Has anyone had this same artifacts?