Skip to content
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

TFTP::Client retransmit lost data blocks on upload #5518

Merged
merged 1 commit into from Sep 24, 2015

Conversation

amatus
Copy link

@amatus amatus commented Jun 9, 2015

Retransmit data blocks until we receieve a matching ACK.

Retransmit data blocks until we receieve a matching ACK.
else
if block_given?
yield "Got an unexpected response: Code:%d, Type:%d, Message:'%s'. Aborting." % [code, type, msg]
while true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loop do would be good here.

@bcook-r7 bcook-r7 self-assigned this Jul 24, 2015
@bcook-r7
Copy link
Contributor

I ran into a lot of trouble just using the tftp client with or without this change. It doesn't work on OS X (UDP Rex socket issues). It indicates success when a real TFTP server sends an error packet. It indicates failure when the Rex TFTP server sends an ACK. I'm going to need to understand how this works better to make it fully functional again.

@busterb
Copy link
Member

busterb commented Sep 24, 2015

I've been sitting on a few fixes for this in the mean time that might as well land. The main issue was the retries will spin 100% cpu if the remote server is not actually responding, so I added a max retry before giving up.

@bcook-r7 bcook-r7 merged commit 91a06fb into rapid7:master Sep 24, 2015
@bcook-r7
Copy link
Contributor

6e14679, b40c366

@bcook-r7
Copy link
Contributor

Thanks, #6001 sums up the remaining things to fix with TFTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants