Re: [twsocket] FTP client testing
Hello Angus, OK, I installed filezilla server to my local computer and uploaded files to it using LocalHost. ICS client worked in all modes (FTP, FTP AuthSSL, FTP AuthTLS and Implicit). So, there seems to be no problem with local file transfers. I think the problem may be with site5 server configuration, which supports SSL but maybe it is not configured properly. OR, the problem may be in routers... Angus, I still want to try any distant FTP server to be sure that my ISP is not to blame. You can send me test login and password to spama...@mail.ru and I will try to upload something to your server using ICS client, and if it fails, I will also try FileZilla client. Sunday, February 27, 2011, 3:27:00 PM, you wrote: ARMSL ics.ftptest.org Personally, I cannot make it work even with Filezilla: ARMSL SSL is now working with the public FTP server, the ICS FTP server was ARMSL already configured to use a limited range of passive ports, so I just ARMSL added these to the firewall (at the same time as blocking as various Far ARMSL East ISPs that are hacking me) and FileZilla and ICS FTP client are now ARMSL both working, with passive mode only. ARMSL If you email me privately, I'll set-up a test FTP login account so you ARMSL can upload stuff. ARMSL Angus ARMSL -- ARMSL To unsubscribe or change your settings for TWSocket mailing list ARMSL please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket ARMSL Visit our website at http://www.overbyte.be -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTP client testing
Hello Angus, No, when I try to upload anything from FAR or Filezilla, I get this: Response: 501 Permission Denied Error: Critical file transfer error It looks like the server is read-only for anonymous users. Monday, February 28, 2011, 12:40:00 PM, you wrote: Angus, I still want to try any distant FTP server to be sure that my ISP is not to blame. ARMSL You don't need a login to test SSL, it works fine with anonymous, if ARMSL downloading with SSL works, then uploading will work as well. ARMSL Angus ARMSL -- ARMSL To unsubscribe or change your settings for TWSocket mailing list ARMSL please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket ARMSL Visit our website at http://www.overbyte.be -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTP client testing
Hello Angus, I can download from your FTP from FileZilla. But my ICS application can only upload, that's why I need writing permission to test. Monday, February 28, 2011, 1:41:00 PM, you wrote: ARMSL Once you have got SSL downloads working, I will set-up a logon, but it's ARMSL a waste of my time if your SSL problems are elsewhere. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTP client testing
Hello Angus, I have no idea where did you find s...@acritum.com, but sp at the beginnng supposes it is intended for spam :) Anyway, I received your login info. Thanks. I think ICS FTP SSL client works fine. I tested in all SSL modes in passive mode and had no problems. Active mode works only in FTP mode, but I think this is because of your firewall. Can I give your login/password to that guy who complains on the FTP hangup? I wonder will SSL connections hang up or not. Monday, February 28, 2011, 5:55:00 PM, you wrote: ARMSL This is the mail system at host fallback5.mail.ru. ARMSL s...@acritum.com: host acritum.com[174.132.5.68] said: 550 No Such User ARMSL Here -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Angus, I unplugged the network cable from the router and plugged it directly to notebook. The notebook doesn't have antivirus and firewall software. Now, when I upload the file using FTP SSL, FileZilla has the same problem with directory listing hangup. If I upload a file to my server using ICS FTP SSL module, it waits for some time and then says: Disconnected with error 425 Could not open data connection to port 56353: Connection timed out [!] So, there is a strange port involved... I have no idea what this port means, I didn't specify it anywhere. I also tried FileZilla on another computer connected directly to the network (without router), and got exactly the same result, so the problem is not computer-specific. The question is: is there anyone who saw FTP SSL client in real work? Am I the only one who has problems with FTPS or this is a known problem? Unfortunately, I couldn't upload to ics.ftptest.org, it says Error 501 Permission denied. The following servers don't seem to like anonymous users. At least I cannot log in. ARMSL filezilla.ftptest.org ARMSL wsftp.ftptest.org ARMSL servu.ftptest.org ARMSL gene6.ftptest.org ARMSL msftp7.ftptest.org -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Angus, Saturday, February 26, 2011, 12:20:00 PM, you wrote: ARMSL Upload to what server, where? Your own, on your own LAN? Or behind ARMSL another firewall, like mine? Are you using NAT on both client and server, ARMSL or do both have public IP addresses? No, this time I did not use the router, and I don't have firewall. The computer has real internet IP. The server is the one that site5.com gives, with real IP. I don't know if they use any firewalls. Anyway, I don't have any other FTPS servers to try... -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Francois, PORT 192,168,10,170,233,24 500 I won't open a connection to 192.168.10.170 (only to 95.27.199.164) How to solve this problem? FP Use passive mode. FP You router is probably smart enough to handle active connections but it FP can't be smart with SSL because it can't understand the commands sent by the FP client: they are encrypted. No problem with passive mode as all connections FP are outgoing (Active mode has an incomming connection for data). Actually, this is the first thing I tried, but the demo application hangs in passive mode when SSL is enabled. It shows the following: 227 Entering Passive Mode (174,132,5,68,209,134) ! Upload Size 34.5K then it waits for a certain period of time and shows: PASV Request 18 Done. StatusCode = 550 LastResponse was : 'Unable to establish data connection - Winsock - Connection timed out (#10060)' Error = 550 (Unable to establish data connection - Winsock - Connection timed out (#10060)) I don't use antiviruses and firewalls, so the result is even worse than in active mode. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Francois, The router doesn't block anything as far as I know. All FTP connections (active and passive) work when I disable ssl feature in the demo application. Friday, February 25, 2011, 11:38:53 AM, you wrote: Actually, this is the first thing I tried, but the demo application hangs in passive mode when SSL is enabled. It shows the following: 227 Entering Passive Mode (174,132,5,68,209,134) ! Upload Size 34.5K then it waits for a certain period of time and shows: PASV Request 18 Done. StatusCode = 550 LastResponse was : 'Unable to establish data connection - Winsock - Connection timed out (#10060)' Error = 550 (Unable to establish data connection - Winsock - Connection timed out (#10060)) I don't use antiviruses and firewalls, so the result is even worse than in active mode. FP Is your router blocking outgoing connections to all non standard ports ? FP -- FP francois.pie...@overbyte.be FP The author of the freeware multi-tier middleware MidWare FP The author of the freeware Internet Component Suite (ICS) FP http://www.overbyte.be FP -- FP To unsubscribe or change your settings for TWSocket mailing list FP please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket FP Visit our website at http://www.overbyte.be -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Francois, Friday, February 25, 2011, 12:24:14 PM, you wrote: FP Have you tried to connect the the same server from the same computer using FP another FTPS client ? I tried 2 FTP servers with SFTP compatibility. The first one is as I described, the other one shows SSH-2.0-mod_sftp/0.9.7 and hangs. I tried another free SFTP client called WinSCP. It understandsh 3 protocols, FTP, SCP and SFTP. It works with both servers fine with all 3 protocols, so I can connect and upload files without any problems. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Francois, Friday, February 25, 2011, 1:26:33 PM, you wrote: FP SFTP and FTPS are NOT the same thing ! FP SFTP use SSH (Old system implemented above telnet) FP FTPS use SSL (New system implemented using SSL/TLS) FP ICS only implements FTPS. OK, what free ftps software can you recommend to test with my server? As I see, the demo application connects and authenticates with SSL fine, so it surely supports FTPS as well as SFTP. The only thing to find out is will an alternative client execute PUT command or not. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello Arno, Friday, February 25, 2011, 2:13:54 PM, you wrote: AG FileZilla client supports both SFTP (over SSH using putty) and FTPS. AG FileZilla server supports FTPS. Filezilla: Works with FTP, SFTP. Implicit FTPS doesn't work. Connects and hangs on directory listing with FTPES (explicit FTPS): Status: Resolving address of *** Status: Connecting to ***... Status: Connection established, waiting for welcome message... Response: 220-- Welcome to Pure-FTPd [privsep] [TLS] -- Response: 220-You are user number 3 of 50 allowed. Response: 220-Local time is now 05:38. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 15 minutes of inactivity. Command:AUTH TLS Response: 234 AUTH TLS OK. Status: Initializing TLS... Status: Verifying certificate... Command:USER *** Status: TLS/SSL connection established. Response: 331 User *** OK. Password required Command:PASS * Response: 230-User *** has group access to: *** Response: 230 OK. Current restricted directory is / Command:PBSZ 0 Response: 200 PBSZ=0 Command:PROT P Response: 200 Data protection level set to private Status: Connected Status: Retrieving directory listing... Command:PWD Response: 257 / is your current location Command:TYPE I Response: 200 TYPE is now 8-bit binary Command:PASV Response: 227 Entering Passive Mode (*,*,*,*,202,48) Command:MLSD Error: Connection timed out Error: Failed to retrieve directory listing PS: I replaced private data with *. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Mayby it depends on the OC. I use Windows 7. I could also make it with the demo. Probably there are situations when abort doesn't work and the next command used with the component causes this error. See attach. PS: attach is not allowed here, so I uploaded screenshot here: a href='http://acritum.com/tmp/smtp.jpg'SMTP problem screenshot/a Thursday, February 24, 2011, 2:08:05 PM, you wrote: AG Antol wrote: Hello Arno, Is it possible to prevent SMTP component from hanging? I mean, when something goes wrong, for example I set port 465 and STARTTLS, the component hangs and even after I call smtp.abort and then try to do something new with it, there appears a window that says SMTP component not ready, and it hands until I close the application and restart it. AG I cannot reproduce this with the demo and in my programs I use Abort AG on timeout without a problem. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL FTP problem?
Hello, I use a router, so 192.168.10.170 is my local IP and 95.27.199.164 is my external IP. When I connect to my ftp server using NO SSL, everything is fine, but if I enable SslTypeAuthTls, it connects fine, but when I use PUT, I always get the following error: PORT 192,168,10,170,233,24 500 I won't open a connection to 192.168.10.170 (only to 95.27.199.164) How to solve this problem? -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Tuesday, February 22, 2011, 3:42:39 PM, you wrote: Host: smtp.googlemail.com / or smtp.gmail.com Port: 25 SSL-Type: Explicit User: your email address at gmail Password: ... AuthType: Login //! Or: Host: smtp.googlemail.com / or smtp.gmail.com Port: 465 SSL-Type: Implicit User: your email address at gmail Password: ... AuthType: Login //! I'm trying the second way because port 25 seems to be blocked by my ISP. I made OverbyteIcsSslMailSnd.exe send mails from google server, but now my task is to replace old smtpcli with sslsmtpcli with as little pain as possible. I made it work with my ordinary mail server, but when I try to send from google, I receive the following error: Error SSL Handshake failed ESslContextException SSL requires a context object It looks like I set all the params like in demo, but still this error occurs. What is the reason? Should I have any additional files in my application folder to send files with sslsmtpcli? -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Wednesday, February 23, 2011, 9:02:02 PM, you wrote: AG You have to assign a TSslContext object to the SslContext property of AG a SSL-enabled ICS component. The easiest way is to drop a TSslSmtpCli AG and a TSslContext on the from and assign the SslContext in Object AG Inspector. Can be done at run-time as well of course. Thank you, now it works as it should. Now if I add another ssl smtp client to send error reports, should I add another TSslContext object to the form as well, or one TSslContext object can be used for two different sslsmtpclients simultaneously (withdifferent host/login/password settings)? -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Thursday, February 24, 2011, 9:17:46 AM, you wrote: AG One is enough, and it's only required if the component actually uses SSL. Thanks. By the way, maybe it will be interesting to other users, I made some tests with smtp.gmail.com: Google states this: Port for TLS/STARTTLS: 587 Port for SSL: 465 I found that: Port 587 works with STARTTLS option only. Port 465 works with TLS option only. Other combinations don't work, at least on my system... -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Is it possible to prevent SMTP component from hanging? I mean, when something goes wrong, for example I set port 465 and STARTTLS, the component hangs and even after I call smtp.abort and then try to do something new with it, there appears a window that says SMTP component not ready, and it hands until I close the application and restart it. Is there any safe way to reset the component completely during runtime? -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] SSL send emai using gmail?
Hello , Anyone has any idea how to make OverbyteIcsSslMailSnd.exe send mails through smtp.gmail.com? Whatever I try there, it just doesn't send. What parameters and buttons order should be used? -- Best regards, Antol mailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Arno, Tuesday, February 22, 2011, 3:42:39 PM, you wrote: Ah forgot the button-sequence on the left. Connect | Ehlo | StartTLS | Ehlo | Auth |..as usual It says: RequestDone Rq=0 Error=SSL Handshake failed EIcsSsleayException File not found: SSLEAY32.DLL It seems that I don't have SSLEAY32.DLL. Where do people usually get it? I found it in google but I don't want to download it from untrusted sites. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL send emai using gmail?
Hello Zvone, Thanks all, finally it works! Tuesday, February 22, 2011, 4:28:23 PM, you wrote: Z See: Z http://wiki.overbyte.be/wiki/index.php/ICS_Download -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Francois, FP That remind me a site where a bluecoat system was installed. Bluecoat was FP configured to scan for virus any file passing thru, even zipped files which FP where unzipped. unfortunately Bluecoat failed with a certain size of file FP and as seen from the user, the transfer failed. Once that Bluecoat feature FP was turned off, everything went OK. The first thing that I asked the user to do is to disable all firewalls and antiviruses, it didn't help. Anyway, we still don't understand why only ICS 7 affected by this issue. Is it possible that there was a change between V5 and V7 in other dependant files (not FTPCli) that could lead to this problem? FP You have to click on the TypeSet button which send the command to the FTP FP server with the checkbox value as parameter. FP Same as you have to do by code ! Really cool stuff, if you know how to use it, but give it to somebody else and his brain will boil from confusion! The absence of any manual for it makes a kind of guarantee that the user will be satisfied with this puzzle ;-) -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Francois, OK, after another series of tests it turned out that I have no idea what the problem is. The user could find out that: - using a passive connection to transfer any file of a certain size (maybe larger than 38Mb but maybe 37.Mb) causes a failure under unknown conditions (the ftp client hangs). I sent your OverbyteIcsFtpTst.exe from the 7th version package to test it on that damn computer and it also fails. Besides, it seems to have a bug: there seems to be no way to initiate binary transfer. It always opens ASCII transfer, even if binary checkbox is checked: 150 Opening ASCII mode data connection for ocb.exe Thursday, February 3, 2011, 11:03:36 PM, you wrote: FP Is it confirmed that the server actually send the 226 answer and this is FP lost because the client doesn't see it ? By the moment the software was tested with 2 servers, and the behavior is the same. We could think that the router is the problem, but the only unexplained thing remained is why ICS5 works... FP I understood that, but nevertheless, I would like to confirm the server send FP the 226 answer when the download is done. It is possible that something is FP wrong at the closing of the data connection and so the server never send his FP 226 status, or the server send it but ICS doesn't get it. FP So before continuing with guessing, I would like to know the answer to my FP question, because this is the next thing I would check myself if I had that FP problem. FP You said you reproduced the issue with your own server being interrogated, FP so it should be easy for you to spy on the network at your own server and FP see if the 226 answer is properly sent with his ending CR/LF. FP Regards, FP -- FP francois.pie...@overbyte.be FP The author of the freeware multi-tier middleware MidWare FP The author of the freeware Internet Component Suite (ICS) FP http://www.overbyte.be FP -- FP To unsubscribe or change your settings for TWSocket mailing list FP please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket FP Visit our website at http://www.overbyte.be -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Arno, No, it was reported that the software with FTPCLI_BUFFER_OLD also hangs :( Monday, January 24, 2011, 10:30:29 AM, you wrote: AG const AG // BLOCK_SIZE = 1460; { 1514 - TCP header size } AG {$IFDEF FTPCLI_BUFFER_OLD} AG FTP_SND_BUF_SIZE = 1460; { arno V7.18 } AG FTP_RCV_BUF_SIZE = 4096; { arno V7.18 } AG {$ELSE} AG {$IFDEF FTPCLI_BUFFER_SMALL} AG FTP_SND_BUF_SIZE = 8192; { arno V7.18 } AG FTP_RCV_BUF_SIZE = 8192; { arno V7.18 } AG {$ELSE} AG {$IFDEF FTPCLI_BUFFER_MEDIUM} AG FTP_SND_BUF_SIZE = 16384; { arno V7.18 } AG FTP_RCV_BUF_SIZE = 16384; { arno V7.18 } AG {$ELSE} AG FTP_SND_BUF_SIZE = 32768; { angus V7.00 increased from 1460 } AG FTP_RCV_BUF_SIZE = 32768; { angus V7.00 increased from 4096 } AG {$ENDIF} AG {$ENDIF} AG {$ENDIF} -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Francois, By the moment the software was tested with 2 servers, and the behavior is the same. We could think that the router is the problem, but the only unexplained thing remained is why ICS5 works... Thursday, February 3, 2011, 9:19:16 PM, you wrote: I'm running out of ideas, anybody else? FP Is it confirmed that the server actually send the 226 answer and this is FP lost because the client doesn't see it ? FP -- FP francois.pie...@overbyte.be FP The author of the freeware multi-tier middleware MidWare FP The author of the freeware Internet Component Suite (ICS) FP http://www.overbyte.be FP -- FP To unsubscribe or change your settings for TWSocket mailing list FP please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket FP Visit our website at http://www.overbyte.be -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Francois, Thursday, February 3, 2011, 11:03:36 PM, you wrote: FP You said you reproduced the issue with your own server being interrogated, FP so it should be easy for you to spy on the network at your own server and FP see if the 226 answer is properly sent with his ending CR/LF. No, nobody was able to reproduce the problem! By now I know only one machine that has this problem. I only gave that user login and password to my FTP server so he could try to find out whether it was a server problem or client problem. I've sent another FTP client to that user so he could test FTP passive transfer with alternative software. -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Arno, Friday, January 21, 2011, 8:51:33 PM, you wrote: AG My first guess is that it is a server issue. The server has to send a AG response on the control socket, either success or failure. AG Or for some reason that response was sent however doesn't get thru? AG If you can get a RDP connection to user's PC you could install AG Wireshark and check that. I cannot access that computer. I gave that user login and password to my own FTP server and the result is the same - works in active mode well and hangs at the end of the passive transfer, when the file is completely uploaded. So the server is not to blame. Besides, I uploaded from the same program to HIS ftp server in passive mode and had no problems. Futhermore, I installed Windows XP to WMWARE and uploaded files from it, and it also uploaded OK. This is strange. PS: when the user runs the same program with ICS v5 component, it works on that problematic computer ALWAYS ok, i.e. it never hangs. AG Hmm, that's indeed strange, are you sure it's the same mode AG passive/active? Yes, I'm sure. The program uses presets so the settings are always the same. The user only replaces exe file. The old one works, the new one hangs. When the user replaces the old one back, it works again. The settings are the same. But I see there were a lot of structural changes between V5 and V7 (filenameschanged and some properties to FTP component added/removed). Can it be that there were some code changes between V5 and V7 that can cause this behavior? -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Hello Arno, Sunday, January 23, 2011, 10:09:00 PM, you wrote: AG Antol, AG We realy need a reproducible test case. I searched the source AG again but was not able to find a change that could lead to the AG problem. Double check that you use latest ICSv7 from: AG http://wiki.overbyte.be/wiki/index.php/ICS_Download AG My OverbyteIcsFtpCli.pas is V7.17 No, it is V7.12. I downloaded it with this pack: Download ICS-V7 Distribution (October, 2010) http://www.overbyte.be/frame_index.html?redirTo=/products/ics.html Now I looked more carefully and found daily sources archive with 7.17. I'll try it and let you know if there are any changes. Additional info from the user: Note: 2.20 uses ICS5, 2.30 uses ICS7, TEM is The Evil Machine that doesn't work in passive mode. == Still, 2.20 in passive mode worked--and still works--from TEM but 2.30 in passive mode does not. That is most curious. Yes, routers are not very consistent, which I well understand. But, between 2.20 and 2.30 on TEM the router does not change nor does the operating system... only the software changes. Even stranger still is that passive mode was developed to resolve a NAT issue. Testing any particular router by using active and then passive mode, it would be more likely active mode would fail. (The TEM router is, by the way, an old D-Link DIR-624 which was sold in UK not US.) == -- Best regards, Antolmailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPCli problem.
Additional information: it is supposed that the problem happens in passive mode only. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] FTPCli problem.
Hello Twsocket, I use the latest ICS v7 distributive. The problem happens on [not my] WinXP system with slow DSL connection. I cannot reproduce it on other PCs, so I gave that user a special version that writes logs to file. The problem is as follows: when the file is completely uploaded to FTP server, the program sometimes hangs until ftp.AbortAsync is called manually. Here is the final part of the log in normal situation: ... 15:13:38:799 DataSocketPutDataSent 32768 15:13:39:429 019559D8 TriggerDataSent 804 15:13:39:430 DataSocketPutDataSent 31535 15:13:39:912 019559D8 TriggerDataSent 804 15:13:39:912 DataSocketPutDataSent 0 15:13:39:912 019559D8 TCustomWSocket.Shutdown 1 804 15:13:40:057 ! Data Session closed 15:13:40:057 ! Next3PutAsync 15:13:40:058 019559D8 TCustomWSocket.Shutdown 1 804 15:13:40:061 |226 Transfer complete| 15:13:40:061 ! Next3PutAsync 15:13:40:061 ! HighLevelAsync 0 15:13:40:061 ! HighLevelAsync done 15:13:40:084 019551B4 TriggerDataSent 832 15:13:40:227 |221 Goodbye.| 15:13:40:227 019551B4 TCustomWSocket.Shutdown 1 832 And here is the log when the hanging occurs: ... 01:25:54:968 DataSocketPutDataSent 32768 01:25:55:765 00C45A34 TriggerDataSent 796 01:25:55:765 DataSocketPutDataSent 20016 01:25:56:281 00C45A34 TriggerDataSent 796 01:25:56:281 DataSocketPutDataSent 0 01:25:56:281 00C45A34 TCustomWSocket.Shutdown 1 796 01:25:56:453 ! Data Session closed 01:25:56:453 ! Next3PutAsync 01:25:56:453 00C45A34 TCustomWSocket.Shutdown 1 796 !!! The file is completely uploaded. Here the program hangs and the !!! user aborts the transfer: 01:30:05:062 ! Aborting 01:30:05:062 ! HighLevelAsync 0 01:30:05:062 ! Abort detected 01:30:05:062 ! HighLevelAsync done 01:30:05:093 ! Aborting So, the difference is that on the problematic PC the line 15:13:40:061 |226 Transfer complete| is not always received or processed properly. What is the reason and how to fix this? PS: when the user runs the same program with ICS v5 component, it works on that problematic computer ALWAYS ok, i.e. it never hangs. -- Best regards, Antol mailto:spama...@mail.ru -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] different http root for every user
Hello twsocket, I'm trying to write a simple web server and I want it to be accessible for authorized users only. I also want it to use different folders for different users, for example, when admin connects to http://localhost/, he sees c:\ listing and when user connects to the same url, he sees c:\limited\ listing. I made the authorization routines and all works fine. However, I'm not sure that I used a safe method to set the root folder for the user. I thought it should be done in procedure Tfemform.httpAuthGetPassword(Sender, Client: TObject; right after the password was verified, and I hoped that clientcnx.DocDir:=ehroot.Text; will work, but it doesn't. The users sees the THttpSerber.DocDir anyway. I only made it work by changing the path for the whole component (THttpServer.DocDir) and I'm not sure that it is safe enough. I expect it this change may be harmful when many users use the server at one time. Can you suggest anything? Is it possible to change a root for a user without changing the root of the whole component? Thanks. PS: The root can be easily changed in ftp module for every user, but I can't make it work in http module. -- Best regards, Antol mailto:[EMAIL PROTECTED] -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be