-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to end the connection? #5
Comments
👍 |
I am having the same issue, I don't see a documented method for properly closing the connection. Can we get some clarification on this? |
Bueller? |
I have been having this same issue with the server. The file gets uploaded in its entirety but the client never gets an OK. I did some packet captures and found that the server is not sending the ACK acknowledging the receipt of the final packet (a data packet smaller than set block size). The client then just re-transmits the last packet to the server until it times out and sends an error to the server. Unfortunately, I have exhausted my Node.js skills and don't have any suggestions on how this can be fixed in the code. |
The problem is that client socket is being closed too soon after file transfer is finished. Socket is closed just after receiving last DATA packet, which means final ACK packet may not have enough time to get sent by the underlying OS functions, so the client may never receive the ACK. |
I'm trying to send a file via the client.put function to a server which I created with the tftp.createServer function. The server is set to allow put requests and saves the file in a directory. So far, everything is working, the file is present at the server and the size seems to be fine.
However, after sending the file, the client always get's a timeout [Error: Timed out] and I can't find any event which allows me to end the helper connection / see if the transfer was successful.
Any ideas? Thank you in advance! :)
Client:
Server:
The text was updated successfully, but these errors were encountered: