Re: [twsocket] error while download file
- Original Message - From: Arno Garrels arno.garr...@gmx.de Very true, FTP and firewalls/routers are not the best friends. BTW: Next year I have to support all kinds of proxies including HTTP proxies with FTP. It's my plan to implement HTTP proxy authentication at the TWSocket level as Socks is implemented currently. Is anybody willing to support this work? By testing or contributing existing source? Hi Arno, during this year i'm planning to move from ftp to other platform because with some customers, i can't use ssl and you know that without ssl is too easy to get the ftp account of my server. If you want, i can do some test. Thank you daniele -- Arno Garrels -- 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 -- 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] error while download file
- Original Message - From: Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk It can also be a firewall issue, they can seriously interrupt and corrupt FTP sessions. Yes, it sound a firewall problem. i've done more test and with a small files i haven't any problem, If the file 7/8 Mb or more, i've the problem. Thank you, best regards daniele -- 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] error while download file
Hi, i'va a problem during download a file from ftp. my client download all bytes but i don't recive CMD 226 and the donwload don't terminate. i attach the log, Anyone can help me? I haven't problem with other customers on same server. Best regards Daniele 17.08.42.156 ! HighLevelAsync 0 17.08.42.156 01142F60 TriggerDataSent 884 17.08.42.234 |200 TYPE is now 8-bit binary| 17.08.42.234 ! HighLevelAsync 0 17.08.42.234 01142F60 TriggerDataSent 884 17.08.42.344 |227 Entering Passive Mode (90,111,201,126,195,238)| 17.08.42.344 ! HighLevelAsync 0 17.08.42.344 ! Data Socket Connect 17.08.42.344 TWSocket will connect to 90.111.201.126:50158 17.08.42.344 01142F60 TriggerDataSent 884 17.08.42.437 ! Data Session Connected (Get) 17.08.42.437 01143720 TriggerDataSent 912 17.08.42.515 |150-Accepted data connection| 17.08.42.734 |150 6148.5 kbytes to download| //* 17.11.40.813 ! Data Session closed //* 17.11.40.813 ! Next3GetAsync 17.11.40.813 01143720 TCustomWSocket.Shutdown 1 912 -- 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] onProgress64 update interval
That's fine and depending on your implementation won't slow down transfer speed very much. I'll see what I can do, a fix IMO required to revoke Anton's change, rev. #471, which introduced protected method CreateSocket: TWSocket; virtual. ok for now i've solved the problem, i'll be tuned for future fix or change. thank you. best regards daniele -- 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] onProgress64 update interval
From: Arno Garrels arno.garr...@gmx.de I already wanted to fix it but very good since I can no longer override the internal TWSocket class I canceled this idea. ops :D Anyway your interval of 100ms is too short. Updating the GUI, especially a ProgressBar, in such short intervals is a performance killer. i update GUI with a thread, than the update of the gui don't impact on global performance. From: Jeff Hamblin jphamb...@qtools.com I believe the poster stated 100 ms -- which would be 10 times per second. Probably a bit overkill still, but does provide a smoother display that once per second. Yes, this is the goal ! this is a very simple example: NEW ICS : http://img513.imageshack.us/img513/6417/icsnew.jpg OLD ICS : http://img821.imageshack.us/img821/4619/icsold.jpg BTW now i solved with an avg on the last 2 values. Now i check with a small files. Thank You, regards daniele -- 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] onProgress64 update interval
with an old version of ics, i use OnProgress for update a label with current trasfer, now i move to OnProgress64 but i see that event is fired every second, there is a way to have an update every 100 ms ? Updating a label every 100 mS is a non sense. Updating once per second is enough. in my case have sense : i need to create a graph with instant bandwish and other. There is a way to have an instant update like the old version? Regards daniele -- 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] onProgress64 update interval
Hi, with an old version of ics, i use OnProgress for update a label with current trasfer, now i move to OnProgress64 but i see that event is fired every second, there is a way to have an update every 100 ms ? regards daniele -- 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] 535 SSL handshake failed. Error #1
yes, my customer use my application but for this test, i use OverbyteIcsSslFtpTst.exe on the customer's pc. Is it the _same_ OverbyteIcsSslFtpTst.exe? No, i've compiled OverbyteIcsSslFtpTst and OverbyteIcsSslFtpTst and i make a test. now i've copy SslContext from HTTP and past into Ftp but i've already the error. at the end i past the log. I'm asking because your client_hello size is 90 bytes however my test with the original OverbyteIcsSslFtpTst demo and OSSL 0.9.8e sent a 88 bytes client_hello, this looks like a different different option set in SslContext. can you send me your compiled demo and dll? i hope that i can solve the problem because i need to work on ssl layer. best regards daniele barbato PS: i send you an email. 12.29.18.266 ! HighLevelAsync 0 12.29.18.276 TWSocket will connect to xx:21 12.29.18.306 00A7A350 TryToSend 232 12.29.18.306 00A7A350 TriggerDataSent 232 12.29.18.547 |220-- Welcome to Pure-FTPd [privsep] [TLS] --| 12.29.18.547 |220-You are user number 73 of 80 allowed.| 12.29.18.547 |220-Local time is now 12:29. Server port: 21.| 12.29.18.547 |220-IPv6 connections are also welcome on this server.| 12.29.18.547 |220 You will be disconnected after 20 minutes of inactivity.| 12.29.18.557 ! HighLevelAsync 0 12.29.18.557 00A7A350 PutDataInSendBuffer 232 len 10 [1] 12.29.18.557 00A7A350 TryToSend 232 12.29.18.557 00A7A350 TryToSend 232 12.29.18.557 00A7A350 TriggerDataSent 232 12.29.18.667 |234 AUTH TLS OK.| 12.29.18.667 00A7A350 StartSslHandshake 232 12.29.18.867 00A7A350 InitSSLConnection 232 12.29.18.867 00A7A350 BIO_ctrl(sslbio, BIO_C_SET_SSL, BIO_NOCLOSE, 0x11952B0) = 1 [2] 12.29.18.867 ICB SSL_CB_HANDSHAKE_START 12.29.18.867 ICB SSL_connect: before/connect initialization 12.29.18.867 ICB SSL_connect: SSLv2/v3 write client hello A 12.29.18.867 ICB SSL_connect: error in SSLv2/v3 read server hello A 12.29.18.867 00A7A350 BIO_read(sslbio, 0x1, 0) = -1 [3] 12.29.18.867 00A7A350 BIO_should_retry(sslbio) = 1 [4] 12.29.18.867 00A7A350 TriggerEvent sslFdRead 232 12.29.18.867 00A7A350 TriggerEvent sslFdWrite 232 12.29.18.877 SslAsyncSelect 232, 1 FD_READ 12.29.18.877 00A7A350 TCustomSslWSocket.Do_FD_READ 232 12.29.18.877 00A7A350 BIO_ctrl_get_read_request(nbio) = 7 [5] 12.29.18.877 00A7A350 Winsock recv( 232, 0x12DD1C, 7, 0) = -1 [6] 12.29.18.877 00A7A350 TriggerEvents 232 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 90 [7] 12.29.18.877 00A7A350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [8] 12.29.18.877 SslAsyncSelect 232, 2 FD_WRITE 12.29.18.877 00A7A350 TCustomSslWSocket.Do_FD_WRITE 232 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 90 [9] 12.29.18.877 00A7A350 BIO_read(nbio, 0x12BD3C, 90) = 90 [10] 12.29.18.877 00A7A350 my_RealSend (0xE8, 1228092, 90) = 90 [11] 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [12] 12.29.18.877 00A7A350 TriggerEvents 232 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [13] 12.29.18.877 00A7A350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [14] 12.29.18.877 00A7A350 TCustomSslWSocket.Do_FD_WRITE 232 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [15] 12.29.18.877 00A7A350 BIO_read(nbio, 0x12BD3C, 0) = 0 [16] 12.29.18.877 00A7A350 TriggerEvents 232 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [17] 12.29.18.877 00A7A350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [18] 12.29.18.877 00A7A350 TCustomSslWSocket.Do_FD_WRITE 232 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [19] 12.29.18.877 00A7A350 BIO_read(nbio, 0x12BD3C, 0) = 0 [20] 12.29.18.877 00A7A350 TriggerEvents 232 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 12.29.18.877 00A7A350 BIO_ctrl_pending(nbio) = 0 [21] 12.29.18.877 00A7A350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [22] 12.29.18.987 00A7A350 TCustomSslWSocket.Do_FD_READ 232 12.29.18.987 00A7A350 BIO_ctrl_get_read_request(nbio) = 7 [23] 12.29.18.987 00A7A350 Winsock recv( 232, 0x12DD38, 7, 0) = 7 [24] 12.29.18.987 00A7A350 BIO_write(nbio, 0x12DD38, 7) = 7 [25] 12.29.18.987 00A7A350 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [26] 12.29.18.987 ICB SSL3 alert read fatal unknown 12.29.18.987 ICB SSL_connect: error in SSLv2/v3 read server hello A 12.29.18.987 00A7A350 BIO_read(sslbio, 0x1, 0) = -1 [27] 12.29.18.987 00A7A350 BIO_should_retry(sslbio) = 0 [28] 12.29.18.987 00A7A350 232 [29] error:14077447:SSL routines:SSL23_GET_SERVER_HELLO:reason(1095) 12.29.18.987 00A7A350 TriggerEvent sslFdClose 232 12.29.18.987 00A7A350 NetworkError #10053 12.29.18.987 SslAsyncSelect 232, 32 FD_CLOSE 12.29.18.987 00A7A350
Re: [twsocket] 535 SSL handshake failed. Error #1
- Original Message - From: Arno Garrels arno.garr...@gmx.de Just sent my working binary by private mail. Please let us know how it works. Hi Arno, now work fine, the problem was SslContext. Now i investigate for understand wich parameter can give me the error. Thank you for cooperation, best regards daniele barbato -- 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] 535 SSL handshake failed. Error #1
Hi, i've a problem with on a customer pc. When i try to open a connection over tls layer, i recive the error 535 SSL handshake failed. Error #1. I use the last ICS package and delphi 2010, i use OverbyteIcsSslFtpTst.exe for this test. Anyone can help me? Best regards daniele This is IcsLog: 09.42.49.399 TWSocket will connect to 95.110.201.126:21 09.42.49.399 00A6D550 TryToSend 212 09.42.49.399 00A6D550 TriggerDataSent 212 09.42.49.649 |220-- Welcome to Pure-FTPd [privsep] [TLS] --| 09.42.49.649 |220-You are user number 2 of 80 allowed.| 09.42.49.649 |220-Local time is now 09:42. Server port: 21.| 09.42.49.649 |220-IPv6 connections are also welcome on this server.| 09.42.49.659 |220 You will be disconnected after 20 minutes of inactivity.| 09.42.50.711 00A6D550 PutDataInSendBuffer 212 len 27 [1] 09.42.50.711 00A6D550 TryToSend 212 09.42.50.711 00A6D550 TryToSend 212 09.42.50.711 00A6D550 TriggerDataSent 212 09.42.50.831 |331 User xxx OK. Password required| 09.42.51.912 00A6D550 PutDataInSendBuffer 212 len 13 [2] 09.42.51.912 00A6D550 TryToSend 212 09.42.51.912 00A6D550 TryToSend 212 09.42.51.912 00A6D550 TriggerDataSent 212 09.42.52.143 |230-User xxx has group access to: easwebjv | 09.42.52.143 |230-OK. Current restricted directory is /| 09.42.52.143 |230 38714 Kbytes used (2%) - authorized: 1638400 Kb| 09.42.54.586 00A6D550 PutDataInSendBuffer 212 len 8 [3] 09.42.54.586 00A6D550 TryToSend 212 09.42.54.586 00A6D550 TryToSend 212 09.42.54.586 00A6D550 TriggerDataSent 212 09.42.54.706 |200 TYPE is now 8-bit binary| 09.42.56.599 00A6D550 PutDataInSendBuffer 212 len 10 [4] 09.42.56.599 00A6D550 TryToSend 212 09.42.56.599 00A6D550 TryToSend 212 09.42.56.599 00A6D550 TriggerDataSent 212 09.42.56.719 |234 AUTH TLS OK.| 09.42.56.719 00A6D550 StartSslHandshake 212 09.42.56.919 00A6D550 InitSSLConnection 212 09.42.56.919 00A6D550 BIO_ctrl(sslbio, BIO_C_SET_SSL, BIO_NOCLOSE, 0x1085A70) = 1 [5] 09.42.56.919 ICB SSL_CB_HANDSHAKE_START 09.42.56.919 ICB SSL_connect: before/connect initialization 09.42.56.919 ICB SSL_connect: SSLv2/v3 write client hello A 09.42.56.919 ICB SSL_connect: error in SSLv2/v3 read server hello A 09.42.56.919 00A6D550 BIO_read(sslbio, 0x1, 0) = -1 [6] 09.42.56.919 00A6D550 BIO_should_retry(sslbio) = 1 [7] 09.42.56.919 00A6D550 TriggerEvent sslFdRead 212 09.42.56.919 00A6D550 TriggerEvent sslFdWrite 212 09.42.56.919 SslAsyncSelect 212, 1 FD_READ 09.42.56.919 00A6D550 TCustomSslWSocket.Do_FD_READ 212 09.42.56.919 00A6D550 BIO_ctrl_get_read_request(nbio) = 7 [8] 09.42.56.919 00A6D550 Winsock recv( 212, 0x12DD44, 7, 0) = -1 [9] 09.42.56.919 00A6D550 TriggerEvents 212 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 90 [10] 09.42.56.919 00A6D550 BIO_ctrl_get_write_guarantee(nbio) = 4096 [11] 09.42.56.919 SslAsyncSelect 212, 2 FD_WRITE 09.42.56.919 00A6D550 TCustomSslWSocket.Do_FD_WRITE 212 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 90 [12] 09.42.56.919 00A6D550 BIO_read(nbio, 0x12BD60, 90) = 90 [13] 09.42.56.919 00A6D550 my_RealSend (0xD4, 1228128, 90) = 90 [14] 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [15] 09.42.56.919 00A6D550 TriggerEvents 212 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [16] 09.42.56.919 00A6D550 BIO_ctrl_get_write_guarantee(nbio) = 4096 [17] 09.42.56.919 00A6D550 TCustomSslWSocket.Do_FD_WRITE 212 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [18] 09.42.56.919 00A6D550 BIO_read(nbio, 0x12BD6C, 0) = 0 [19] 09.42.56.919 00A6D550 TriggerEvents 212 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [20] 09.42.56.919 00A6D550 BIO_ctrl_get_write_guarantee(nbio) = 4096 [21] 09.42.56.919 00A6D550 TCustomSslWSocket.Do_FD_WRITE 212 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [22] 09.42.56.919 00A6D550 BIO_read(nbio, 0x12BD6C, 0) = 0 [23] 09.42.56.919 00A6D550 TriggerEvents 212 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 09.42.56.919 00A6D550 BIO_ctrl_pending(nbio) = 0 [24] 09.42.56.919 00A6D550 BIO_ctrl_get_write_guarantee(nbio) = 4096 [25] 09.42.57.040 00A6D550 TCustomSslWSocket.Do_FD_READ 212 09.42.57.040 00A6D550 BIO_ctrl_get_read_request(nbio) = 7 [26] 09.42.57.040 00A6D550 Winsock recv( 212, 0x12DD6C, 7, 0) = 7 [27] 09.42.57.040 00A6D550 BIO_write(nbio, 0x12DD6C, 7) = 7 [28] 09.42.57.040 00A6D550 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [29] 09.42.57.040 ICB SSL3 alert read fatal unknown 09.42.57.040 ICB SSL_connect: error in SSLv2/v3 read server hello A 09.42.57.040 00A6D550 BIO_read(sslbio, 0x1, 0) = -1 [30] 09.42.57.040 00A6D550
Re: [twsocket] 535 SSL handshake failed. Error #1
09.42.57.040 00A6D550 212 [32] error:14077447:SSL routines:SSL23_GET_SERVER_HELLO:reason(1095) Error number 1095 seems to mean const SSL_R_KRB5_C_GET_CRED which has been changed from 1095 to 287 in OpenSSL 0.9.8a to 0.9.8b. Dunno the meaning of this error, may have to do with Kerberos. Hi Arno, thank you for your answer. LibEay32.dll is 0.9.8e and is the same on ftp server. From my pc work fine with same dll. Can you give me an idea for investigate? In my lan there is any kerberos's server. best regards daniele barbato -- 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] 535 SSL handshake failed. Error #1
From: Arno Garrels arno.garr...@gmx.de It might be that the application loaded some incompatible OpenSSL libraries unless the full path and filenames are specified. try GSSLEAY_DLL_Name := full path and filename; GLIBEAY_DLL_Name := full path and filename; MySslContext.InitContext; // loads the libraries and initializes the SslContext except // Something went wrong, log and handle it. end; ok, tomorrow morning i try this. i'm sure that in the folder of OverbyteIcsSslFtpTst.exe, the dll are 0.9.8e and with ProcessMonitor.exe i see that they are loaded this morning i've see that if i use OverbyteIcsHttpsTst.exe from the customer's pc, ssl work fine. TSSLContext is different between ftp and http? As I understand, your customer uses your application rather than OverbyteIcsSslFtpTst.exe. If so, I would compare all SSL settings of your application with the demo settings. yes, my customer use my application but for this test, i use OverbyteIcsSslFtpTst.exe on the customer's pc. -- 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] OpenSSL 1.0
Hi, IcsSSL is compatible with OpenSSL 1.0 ? now i'm using 0.9.8e, do you suggest me to update to version 1? thank you in advantage. best regards daniele -- 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] error with Ftp over TLS
- Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org Sent: Monday, December 07, 2009 7:43 PM Subject: Re: [twsocket] error with Ftp over TLS Hi Arno, thank you ofr your response. Strange, was it possible to post a common FTP log as well? i don't understant very well, what is the problem to post the log? With method ReceiveAsync the component doesn't try to establish a secure data channel/connection. However some server may require it, just a guess (haven't read your attached log yet). If so, do not use method ReceiveAsync but the low level methods instead. ok, i try tomorrow. I use ReceiveAsync because is too easy and i see that it work with a lot of customers (the ftp server is only one for all customers). Anyway tomorrow i try with low level methods and send you the log. regards daniele Example FTP log, method ReceiveAsync, data channel plain text allowed: Executing Requested Command 220 FileZilla Server version 0.9.24 beta Session Connected, error = 0 AUTH SSL 234 Using authentication type SSL ! SSL handshake OK USER ics 331 Password required for ics PASS ics 230 Logged on CWD / 250 CWD successful. / is current directory. TYPE I 200 Type set to I PASV 227 Entering Passive Mode (192,168,178,200,8,240) RETR _tmp.txt 150 Connection accepted 226 Transfer OK ! 1,07Kbytes received/sent in 0 milliseconds QUIT 221 Goodbye Example FTP log, method ReceiveAsync, server requires secure data channel: Executing Requested Command 220 FileZilla Server version 0.9.24 beta Session Connected, error = 0 AUTH SSL 234 Using authentication type SSL ! SSL handshake OK USER ics 331 Password required for ics PASS ics 230 Logged on CWD / 250 CWD successful. / is current directory. TYPE I 200 Type set to I PASV 227 Entering Passive Mode (192,168,178,200,8,246) RETR _tmp.txt 550 PROT P required Request 6 Done. StatusCode = 550 LastResponse was : '550 PROT P required' Error = 550 (550 PROT P required) -- Arno Garrels this is the section of code that i use for download: FtpClient1.DisplayFileFlag := false; FtpClient1.Passive := true; FtpClient1.Binary := true; if UseTLS then begin FtpClient1.SSLContext := CM.FtpCliSslContext; FtpClient1.ProtLevel := 'P'; FtpClient1.PBSZSize:= 0; FtpClient1.SslType := sslTypeAuthTls; end; FtpClient1.ReceiveAsync; anyone have a suggestion? thank you in advantage. this is the last part of ics log: 18.09.16.125 |227 Entering Passive Mode (82,0,0,0,78,76)| 18.09.16.125 ! HighLevelAsync 0 18.09.16.125 ! Data Socket Connect 18.09.16.125 TWSocket will connect to 82.0.0.0:20044 18.09.16.125 033FABF0 PutDataInSslBuffer 748 len 6 [254] 18.09.16.125 033FABF0 SslTryToSend 748 18.09.16.125 033FABF0 BIO_write(sslbio, 0x33D8110, 6) = 6 [255] 18.09.16.125 033FABF0 BIO_ctrl(sslbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [256] 18.09.16.125 033FABF0 TriggerEvents 748 SslState: SSL_ST_OK // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=-1 bAllSent=0 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 37 [257] 18.09.16.125 033FABF0 TriggerEvent sslFdWrite 748 18.09.16.125 033FABF0 BIO_ctrl_pending(sslbio) = 0 [258] 18.09.16.125 033FABF0 BIO_ctrl_get_write_guarantee(nbio) = 4096 [259] 18.09.16.125 033FABF0 TriggerEvents 748 SslState: SSL_ST_OK // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=0 MaySslTryToSend=-1 bSslAllSent=-1 bAllSent=0 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 37 [260] 18.09.16.125 033FABF0 BIO_ctrl_pending(sslbio) = 0 [261] 18.09.16.125 033FABF0 BIO_ctrl_get_write_guarantee(nbio) = 4096 [262] 18.09.16.125 SslAsyncSelect 748, 2 FD_WRITE 18.09.16.125 033FABF0 TCustomSslWSocket.Do_FD_WRITE 748 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 37 [263] 18.09.16.125 033FABF0 BIO_read(nbio, 0x13AED8, 37) = 37 [264] 18.09.16.125 033FABF0 my_RealSend (0x2EC, 1289944, 37) = 37 [265] 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 0 [266] 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 0 [267] 18.09.16.125 033FABF0 TriggerDataSent 748 18.09.16.125 033FABF0 TriggerEvents 748 SslState: SSL_ST_OK // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=-1 bAllSent=-1 18.09.16.125 033FABF0 BIO_ctrl_pending(nbio) = 0 [268] 18.09.16.125 033FABF0 BIO_ctrl_pending(sslbio) = 0 [269] 18.09.16.125 033FABF0 BIO_ctrl_get_write_guarantee(nbio) = 4096 [270] 18.09.16.171 ! Data Session Connected (Get) 18.09.16.171 033FB3B0 TryToSend 808 18.09.16.171 033FB3B0 TriggerDataSent 808 18.09.16.203 033FABF0 TCustomSslWSocket.Do_FD_READ 748 18.09.16.203 033FABF0 BIO_ctrl_pending(sslbio) = 0 [271] 18.09.16.203 033FABF0 BIO_ctrl_get_read_request(nbio) = 0 [272] 18.09.16.203 033FABF0 BIO_ctrl_get_write_guarantee(nbio) = 4096 [273] 18.09.16.203 033FABF0 Winsock recv( 748, 0x13CED4, 4096, 0) = 69 [274]
Re: [twsocket] error with Ftp over TLS
- Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org Sent: Tuesday, December 08, 2009 12:38 PM Subject: Re: [twsocket] error with Ftp over TLS The log entries of data socket seem ok and the file should have been received, correct? yes is true. Afterwards the server actually doesn't perform the bidirectional SSL shutdown correctly but drops the line: 18.09.16.265 033FABF0 Winsock recv( 748, 0x13CED4, 4096, 0) = -1 [336] So you get error 500 Control connection closed - Connection aborted (#10053) What FTP server is it? Pure-FTPd [TLS] (if you want, i can give you an account...) In the same client, i have other connection on the same server but this time via HTTPS and work fine (the same customer have problem with ftp over tls but work with https)- i've two TSslContext, one for Ftp and other for Http, do you tink that the problem can be in one or more properties of SslContext? Tomorrow i try to use the settings of SslContex for http on ftp. thank you, regards daniele -- Arno Garrels -- 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 -- 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] error with Ftp over TLS
- Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org Sent: Tuesday, December 08, 2009 1:10 PM Subject: Re: [twsocket] error with Ftp over TLS Svemu - Reparto Sviluppo wrote: The log entries of data socket seem ok and the file should have been received, correct? yes is true. Afterwards the server actually doesn't perform the bidirectional SSL shutdown correctly but drops the line: 18.09.16.265 033FABF0 Winsock recv( 748, 0x13CED4, 4096, 0) = -1 [336] So you get error 500 Control connection closed - Connection aborted (#10053) What FTP server is it? Pure-FTPd [TLS] (if you want, i can give you an account...) Yes please. please send me your email address at chmod700 !at! hotmail.it (!at! is for prevent spam) I do not know Pure-FTPd but the documentation says: Pure-FTPd has experimental support for encryption of the control and data channels using SSL/TLS security mechanisms -- Arno Garrels -- 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 -- 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] error with Ftp over TLS
- Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org; daniele barbato chmod...@hotmail.it Sent: Tuesday, December 08, 2009 4:53 PM Subject: Re: [twsocket] error with Ftp over TLS However the multi-line 226 response looks strange to me: 18.09.16.171 ! Data Session Connected (Get) [..] 18.09.16.203 |150 Accepted data connection| [..] 18.09.16.218 |226-Options: -a | [..] 18.09.16.218 |226 246 matches total| Normal flow would look like this: 18.09.16.171 ! Data Session Connected (Get) [..] 18.09.16.203 |150 Accepted data connection| [..] 18.09.16.218 |226 Transfer OK| Afterwards the server actually doesn't perform the bidirectional SSL shutdown correctly but drops the line: 18.09.16.265 033FABF0 Winsock recv( 748, 0x13CED4, 4096, 0) = -1 [336] So you get error 500 Control connection closed - Connection aborted (#10053) Just tested your server several times and it works fine with the test account you sent me. I wonder why your log contains these strange looking responses: i think that the difference is the command. probably in my log the command was FtpClient1.ListAsync; I've no more ideas, sorry. Maybe somebody else? tomorrow i do a new test on a customer pc, because from my office work fine. thank you. regards daniele -- Arno Garrels -- 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 -- 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