Drain reader before processing next file in Driver handler (PutFile) #148

Open
opened 2021-04-01 02:21:22 +00:00 by sno6 · 3 comments

Hi,

Firstly, I'm building a project that sends frames from a camera to an FTP server when motion is detected (long story but the camera is old and only supports FTP upload).

I've noticed that, in order to process multiple file uploads (not concurrently, just one every second of so) I need to drain the current reader in the Driver's PutFile handler in order to receive subsequent file uploads..

If I don't, it just kind of hangs until another connection comes in.

Any ideas why this could be happening? I understand the issue is a bit vague as it may be hard to put together a client-server app to demonstrate the issue.

Cheers.

Hi, Firstly, I'm building a project that sends frames from a camera to an FTP server when motion is detected (long story but the camera is old and only supports FTP upload). I've noticed that, in order to process multiple file uploads (not concurrently, just one every second of so) I need to drain the current reader in the Driver's PutFile handler in order to receive subsequent file uploads.. If I don't, it just kind of hangs until another connection comes in. Any ideas why this could be happening? I understand the issue is a bit vague as it may be hard to put together a client-server app to demonstrate the issue. Cheers.
Owner

Have you used v2 version?

Have you used v2 version?
Author

Hey @lunny this is using v2

Hey @lunny this is using v2
Owner

Could you give some example code?

Could you give some example code?
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: goftp/server#148
No description provided.