Jump to content


Photo

LastReplyCode wrong


  • Please log in to reply
3 replies to this topic

#1 Raimund

Raimund
  • Members
  • 14 posts

Posted 25 August 2007 - 11:22 AM

When i disconnect after download a file, the result in LastReply is '221 Goodbye.',
but the integer in LastReplyCode is not 221 !!!

Why? Thanks in advance for your help.

[19:59:53] 5970 bytes transferred. (388 KB/s) (15 ms)
[19:59:53] 226 Transfer complete.
[19:59:54] QUIT 
[19:59:54] 221 Goodbye. 
[19:59:54] Client closed the connection.
Best Regards,
Raimund

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 August 2007 - 02:22 PM

Thank you.

Could you please add your license key id to your profile?

Regards,
Mat

#3 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 August 2007 - 05:46 PM

The reason for this behavior is as following: Before the client is able to process the reply from the server it receives an OnClose() event. Thus the Disconnect operation terminates without looking at the reply from the server.

Regards,
Mat
SmartFTP

#4 Raimund

Raimund
  • Members
  • 14 posts

Posted 26 August 2007 - 02:34 AM

But is this behavior correct?

I thought the value of LastReplyCode and the string of LastReply gives the same result.

Best Regards,
Raimund




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users