[twsocket] Connect issue?

2013-04-23 Thread Kristof Gajsek
When using ICS Connect and Feat one after another, the log looks like this:

Debug:  USER username
Debug:  331 Password required for username
Debug:  PASS 
Debug:  230 Logged on
Debug:  FEAT
Debug:  211-Features:
Debug:   MDTM
Debug:   REST STREAM
...

which is OK. However, occasionally, the log looks like this:

Debug:  USER username
Debug:  331 Password required for username
Debug:  FEAT
Debug:  211-Features:
Debug:   MDTM
Debug:   REST STREAM
Debug:   SIZE
Debug:   MLST type*;size*;modify*;
Debug:   MLSD
Debug:   UTF8
Debug:   CLNT
Debug:   MFMT
Debug:  211 End
Debug:  PWD
Debug:  530 Please log in with USER and PASS first.
...

Like Connect would return prematurely, after USER command and not ask for
password. Has anyone seen this before?

(that is, the same code, same user/pass, same server, ... mostly OK,
occasionally second log)

Best regards
Kristof
--
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] Unable to register TIcsWndControl hidden window class. Error #1411.

2012-04-21 Thread Kristof Gajsek
Hi

A client reported he gets the following error (about once in 3 runs):
Unable to register TIcsWndControl hidden window class. Error #1411.

when he runs a larger number of instances (around 30) of FTP application
based on ICS. I tried the same, but could not replicate it. I was wondering
if anyone run into this issue before?

Here's the stack trace:
(00086492) [00487492] OverbyteIcsWndControl.TIcsWndHandler.AllocateHWnd
(Line 1019, OverbyteIcsWndControl.pas + 29) + $3A
(0001AC0B) [0041BC0B] Classes.TList.Grow + $2B
(0001AA82) [0041BA82] Classes.TList.Add + $2A
(00086D7B) [00487D7B]
OverbyteIcsWndControl.TIcsWndHandlerPool.GetWndHandler (Line 1374,
OverbyteIcsWndControl.pas + 36) + $4
(00085E28) [00486E28] OverbyteIcsWndControl.TIcsWndControl.AllocateHWnd
(Line 601, OverbyteIcsWndControl.pas + 23) + $3
(000AB5FD) [004AC5FD] OverbyteIcsFtpCli.TCustomFtpCli.Create (Line 2233,
OverbyteIcsFtpCli.pas + 2) + $4 (000B5C6E) [004B6C6E]
OverbyteIcsFtpCli.TFtpClient.Create (Line 6217, OverbyteIcsFtpCli.pas +
1) + $4

Best regards
Kristof
--
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] Unable to register TIcsWndControl hidden window class. Error #1411.

2012-04-21 Thread Kristof Gajsek
Do you use the FTP component in a DLL or in multiple threads?

No, it's single threaded and ICS is compiled into the program itself.

Best regards
Kristof
--
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] PASV fallback to public IP

2010-09-08 Thread Kristof Gajsek
I have a nagging feeling that NAT address manipulation may only happen
with FTP clients, if it fails then people use passive mode.

This issue happens in passive mode. When FTP client sends PASV command it
gets a response which contains private IP address...

Adding the same feature as FileZilla FTP client is not hard, since the
server public IP address is available from the socket.  Doing the same on
an FTP server is much harder, and really needs a public STUN server (as
used for SIP for the same reason).

... so I guess only replacing IP address given by server in response to PASV
with the public one (the one used to connect to the FTP server) should do
the trick (at least in this case). This does not need to be automatic or
fancy, I guess something like a property OverridePASVIP would be OK - it
would force ICS to use server IP plus port given in PASV response.

Best regards
Kristof
--
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] PASV fallback to public IP

2010-09-07 Thread Kristof Gajsek
Some FTP servers return wrong IP for PASV command (private instead of
public). In such cases, obviously, FTP component can't connect to the
server.

Filezilla is smart enough to detect this and switch to public IP, instead:

...
Command:TYPE I
Response:   200 Type set to I.
Command:PASV
Response:   227 Entering Passive Mode (192,168,*,*,114,78).
Status: Server sent passive reply with unroutable address. Using
server address instead.
Command:LIST
Response:   150 File status okay; about to open data connection.
...

Is it possible to achieve this with ICS?

Best regards
Kristof
--
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] PASV fallback to public IP

2010-09-07 Thread Kristof Gajsek
...
Do you have a specific example of a live public server returning a
private IP that we can test?  It will be very difficult to set-up, since
it needs a crappy NAT router.

Thanks for the explanation, Angus.

This issue was reported by one of my users, who later determined the cause
by himself, so I have no such public server available. I will ask if this is
a public server that can be checked. I guess in his case replacing private
with public IP may work, since FileZilla works, however I agree that fixing
NAT router would be a better option.

Best regards
Kristof
--
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