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

Fix for issue #377 - #301 broke IdFTP in Active mode #389

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

DavidIzadaR
Copy link
Contributor

@DavidIzadaR DavidIzadaR commented Nov 26, 2021

The original code used SendCmd, a combination of IOHandler.WriteLn(ACommand) and GetResponse([125, 150, 154]).
The code after the latest changes (#301) executed IOHandler.Write(ACommand) and GetResponse...
As the capture proved, the missing CRLF triggered the timeout.
In previous comments to the Indy project for this issue (#377) I used Zoe's demo project for testing against test.rebex.net (a demo FTP site).
I also provided binary and parsed captures of the traffic for the previous code executing successfully, and for the new code failing with the timeout.
Lastly, I made a frame-by-frame comparison between both, indicating where the error was triggered (command LIST without the ).

The original code used SendCmd, a combination of IOHandler.WriteLn(ACommand) and GetResponse([125, 150, 154]).
The code after the latest changes (IndySockets#301) executed IOHandler.Write(ACommand) and GetResponse...
As the capture proved, the missing CRLF triggered the timeout.
@DavidIzadaR DavidIzadaR changed the title Fix #301 broke IdFTP in Active mode Fix for issue #337 - #301 broke IdFTP in Active mode Nov 26, 2021
@DavidIzadaR DavidIzadaR changed the title Fix for issue #337 - #301 broke IdFTP in Active mode Fix for issue #377 - #301 broke IdFTP in Active mode Nov 26, 2021
@rlebeau rlebeau merged commit 65c8045 into IndySockets:master Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants