It looked very strange , first file was nicely uploaded but the second was stalled. During debugging process I’ve discovered that any command after STOR is ignored and hanging.
I didn’t find a reason, so had to make a short-cut and now my script does one file per connection, so it opens connection, uploads 1 file, closes it. I will have to put it in a parallel loop for performance gain.
Do you have any Ideas about it ?