Re: [twsocket] [TWSocket] Problem with SslContext and Certificate
Guillaume ROQUES a écrit : div class=moz-text-flowed style=font-family: -moz-fixedHi everyone, I'm trying to use the TSslHttpServer, so I took a look on the OverbyteIcs Ssl WebServer demo. There is my code : with SslHttpServer do begin DocDir := ExtractFilePath(Forms.Application.ExeName); DefaultDoc := 'Index.htm'; TemplateDir := ExtractFilePath(Forms.Application.ExeName); Port := IntToStr(PortSslHttp); ClientClass := TMyHttpConnection; SetAcceptableHostsList(''); end; with TWSslContext do begin SslCertFile:= 'Canyon.pem'; SslPassPhrase := ''; SslPrivKeyFile := 'Canyon.pem'; SslCAFile := 'Canyon.pem'; SslCAPath := ExtractFilePath(Forms.Application.ExeName); SslVerifyPeer := False; end; TWSslContext.InitContext; SslHttpServer.Start; I added the USE_SSL condition in the package. My application is a Windows service and this code is in the ServiceStart section, when I Start it I've got an exception : (ESslContextException) : File not found 'Canyon..pem ..And the file Canyon..pem is in the application path...Someone got a clue ? Guillaume ROQUES CANYON Technologies /div Ok, I found it i forgot the path in the TWSslContext with the certificate name. It work bu I don't understand why because with the demo I only put this name in the TEdit. -- Cordialement, Guillaume ROQUES * CANYON Technologies * 99 Bis Rue de la république 13400 AUBAGNE Tél : 04.42.18.64.20 - Fax : 04.42.18.64.21 can...@canyon.fr mailto:can...@canyon.fr http://www.canyon.fr/ -- 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] [TWSocket] Problem with SslContext and Certificate
Hi everyone, I'm trying to use the TSslHttpServer, so I took a look on the OverbyteIcs Ssl WebServer demo. There is my code : with SslHttpServer do begin DocDir := ExtractFilePath(Forms.Application.ExeName); DefaultDoc := 'Index.htm'; TemplateDir := ExtractFilePath(Forms.Application.ExeName); Port := IntToStr(PortSslHttp); ClientClass := TMyHttpConnection; SetAcceptableHostsList(''); end; with TWSslContext do begin SslCertFile:= 'Canyon.pem'; SslPassPhrase := ''; SslPrivKeyFile := 'Canyon.pem'; SslCAFile := 'Canyon.pem'; SslCAPath := ExtractFilePath(Forms.Application.ExeName); SslVerifyPeer := False; end; TWSslContext.InitContext; SslHttpServer.Start; I added the USE_SSL condition in the package. My application is a Windows service and this code is in the ServiceStart section, when I Start it I've got an exception : (ESslContextException) : File not found 'Canyon..pem ..And the file Canyon..pem is in the application path...Someone got a clue ? Guillaume ROQUES CANYON Technologies -- 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] Mailing list usage
Oh.Ok thanks, I didn't know this url. But for the forum idea, in my mind when we talk about forums I think about developpez.com which have a good forum (search engine, event alert, answer alert.). All I want to say is maybe a forum will eliminate redundants questions and stop disturbing ICS Team for standard questions (install, config). Guillaume ROQUES CANYON Technologies Arno Garrels a écrit : Guillaume ROQUES wrote: Hi, Another disadvantage of the mailing list is to Search a topic Try: http://marc.info/?l=socket -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Mailing list usage
Hi, Another disadvantage of the mailing list is to Search a topicMaybe a question has been asked several times since the mailing list exist, hasn't it ? Guillaume ROQUES CANYON Technologies -- 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] List over 2000 files
I test it with the ICS demo application and I've got this answer when I use the List button : CWD /Test FTP 250 OK. Current directory is /Test FTP PASV 227 Entering Passive Mode (10,0,0,10,168,126) NLST *.* 150 Accepted data connection 226 Output truncated to 2000 matches ! 76,4Kbytes received/sent in 1125 milliseconds QUIT 221-Goodbye. You uploaded 0 and downloaded 0 kbytes. 221 Logout. I've finally found this on http://www.webmasterworld.com/forum40/1504.htm : There is an explanation in the PureftpD readme under OPTIONS: http://www.pureftpd.org/README [...] Pure-ftpd never displays more than 2000 files in response to an 'ls' command. Also, a recursive 'ls' (-R) never goes further than 5 subdirectories. You can increase/decrease those limits with the '-L' option. I use FreeNas for my FTP Server and it use PureFTPd, so that's the answer of my post. Thanks François by the way. Francois Piette a écrit : There is no limit imposed by the component. Truncation and missing data is frequently caused by calling the message pump (directly or indirectly) from any message handler. Could you try using ICS demo application ? -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Guillaume ROQUES [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, December 01, 2008 9:19 AM Subject: Re: [twsocket] [FTP] List over 2000 files So I use it correctly... but is there a limit on the number of files to list or a string limit ? Francois Piette a écrit : I don't see any obvious reason for having none of the method you tryed to work ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Guillaume ROQUES [EMAIL PROTECTED] To: twsocket@elists.org Sent: Friday, November 28, 2008 10:55 AM Subject: [twsocket] [FTP] List over 2000 files Hi, I use the FTP component to get or put files and when I wanted to active it at my customer office there was over 8000 files to download. I've tried 2 methods : 1- I use the displayfileflag on true, I send a LS command and I get the filename in the event OnDisplayFile 2- I use the displayfileflag on false and use the temporary file generated to know filenames. In the first method, it return only 1000 files and some are truncated on different part (name, extensions) In the second method, it return only 2000 files. I would like to know if I use correctly the way to get files list. And if someone could explain me the 2 methods to list files on a server. (I don't need get 8000 files on 1 pass but I just want to know if I use the method correctly). I know that there is a Overbyte FTPTest, and I saw it used the temporary file but I don't want to use one if possible. Thanks Guillaume ROQUES CANYON Technologies -- 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 -- Cordialement, Guillaume ROQUES * CANYON Technologies * 99 Bis Rue de la république 13400 AUBAGNE Tél : 04.42.18.64.20 - Fax : 04.42.18.64.21 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.canyon.fr/ -- 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] List over 2000 files
So I use it correctly... but is there a limit on the number of files to list or a string limit ? Francois Piette a écrit : I don't see any obvious reason for having none of the method you tryed to work ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Guillaume ROQUES [EMAIL PROTECTED] To: twsocket@elists.org Sent: Friday, November 28, 2008 10:55 AM Subject: [twsocket] [FTP] List over 2000 files Hi, I use the FTP component to get or put files and when I wanted to active it at my customer office there was over 8000 files to download. I've tried 2 methods : 1- I use the displayfileflag on true, I send a LS command and I get the filename in the event OnDisplayFile 2- I use the displayfileflag on false and use the temporary file generated to know filenames. In the first method, it return only 1000 files and some are truncated on different part (name, extensions) In the second method, it return only 2000 files. I would like to know if I use correctly the way to get files list. And if someone could explain me the 2 methods to list files on a server. (I don't need get 8000 files on 1 pass but I just want to know if I use the method correctly). I know that there is a Overbyte FTPTest, and I saw it used the temporary file but I don't want to use one if possible. Thanks Guillaume ROQUES CANYON Technologies -- 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 -- Cordialement, Guillaume ROQUES * CANYON Technologies * 99 Bis Rue de la république 13400 AUBAGNE Tél : 04.42.18.64.20 - Fax : 04.42.18.64.21 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.canyon.fr/ -- 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] [FTP] List over 2000 files
Hi, I use the FTP component to get or put files and when I wanted to active it at my customer office there was over 8000 files to download. I've tried 2 methods : 1- I use the displayfileflag on true, I send a LS command and I get the filename in the event OnDisplayFile 2- I use the displayfileflag on false and use the temporary file generated to know filenames. In the first method, it return only 1000 files and some are truncated on different part (name, extensions) In the second method, it return only 2000 files. I would like to know if I use correctly the way to get files list. And if someone could explain me the 2 methods to list files on a server. (I don't need get 8000 files on 1 pass but I just want to know if I use the method correctly). I know that there is a Overbyte FTPTest, and I saw it used the temporary file but I don't want to use one if possible. Thanks Guillaume ROQUES CANYON Technologies -- 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] ESocketException
It's possible that Winsock installation is corrupted? That's why I don't understand the error. I don't know how to understand this error, as my connections with the component work in my tool (1) thanks by the way, Guillaume ROQUES CANYON Technologies -- 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] [FTP] ESocketException
Hi, I use the FTP Client Component in 2 of my applications : 1-Just a tool to manage the FTP connections 2-A window service which check, by FTP, if some defined files exists. In my Tool (1), I could test my connections and it work well (similar to the FtpCLi example ;p) In my service (2), the connection doesn't work. I've got error like this : Request 1 Done. StatusCode = 500 LastResponse was : 500 ESocketException: Not a WinSock error (#10107 in Connect) I don't know how to understand this error, as my connections with the component work in my tool (1) regards, Guillaume ROQUES CANYON Technologies -- 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] [FTP] Retreive or transmit n files
Hi everyone, I would like to know if the mget command (or similiar) exist in ICS FTPCli component. Maybe it has been aswered but I didn't find itsorry. Thanks Guillaume ROQUES CANYON Technologies -- 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] [SSLHttpServer] AcceptableHost and BackgroundException
Hi, I have questions about 2 functionnalities in SSLHttpServer components : 1. What is the purpose of the Acceptable Hosts List ? 2. I understand what Acceptable Hosts List contain but Why is it present in the SSL component and why not in the HttpServer component too ? 3. The OnBgException event : When is it Trigerred ? Thanksfully, Guillaume ROQUES CANYON Technologies -- 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] Rs: [SSLHttpServer] AcceptableHost and BackgroundException
Ok, thank you for answering ! By the way I tested the WebServerDemo and when I'd like to access to demo.html, on SSL default port, I got an Exception : Unsupported OpenSSL version Do we need to install OpenSSL ? Then We have to deploy it in our customer office ? Guillaume ROQUES CANYON Technologies -- 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] Rs: [SSLHttpServer] AcceptableHost andBackgroundException
It is likely that you already have OpenSSL on your system, but an old version. You can download the correct binaries from my website on the ICS download page where a link is provided. You need to deploy two DLL along with your application. There is no real installation. It is enough to have the two DLLs in the same folder as your executable, or anywhere on the path. I checked it before, because the error handle show me the DLL that I have, the registered DLL is from my subversion local server which is in 0.9.8.7...the version known by ICS is v0.9.8e. ?? Nevertheless, I'll download the DLL you provided us allbut I don't understand the difference. Guillaume ROQUES CANYON Technologies -- 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] Re : [THTTPServer] Answers blocked ?
If the server stop completely, I see two possibilities: 1) The server is stopped (the socket server listening for connections is closed). This may happend when you have a bug and unexpectedly close a bad [file or other] handle. If it happends that the wrong handle is the listening socket handle, no other connection will be accepted. (CloseHandle() applyed to a socket handle will close the socket). 2) The thread servicing the HTTP server is blocked and doesn't call the message pump anymore. So no event is triggered nor handled and nothing happend any more regarding socket I/O which - as you know - is event driven.OK, you shall tell you that my answerstring is between a trI found it, it was the first possibilities : a bug. We are in a 3 tier application so we have to manage the refresh of our dataset but one of the refresh procedure where bugged (a bad copy/paste or, in french, un copier/coller assassin) and raise an uncaught exceptionBy the way I've seen it not thanks to my log files but with Windows Event Manager. It log uncaught exception on my service, this help me beacause the time of each log correspond to my refresh timeT_Tthanks sincerely,PS: I haven't receive messages in my mail box so I'd to create new message and so new thread. For all users, I apologize.--Guillaume ROQUESCANYON Technologies -- 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] Re : [THTTPServer] Answers blocked ?
Are you using AnswerString(), AnswerPage() or similar ?AnswerString Are you building the response header lines yourself or is this handled by the component ?Handled by the component What I wanted to know was : when the issue occur, are all the clients and all the requests affected ? Said in another way: does the server stop servicing any client properly ?Yes the Server stop responding to others clients but the Windows'service does not crash... If the server stop completely, I see two possibilities: 1) The server is stopped (the socket server listening for connections is closed). This may happend when you have a bug and unexpectedly close a bad [file or other] handle. If it happends that the wrong handle is the listening socket handle, no other connection will be accepted. (CloseHandle() applyed to a socket handle will close the socket). 2) The thread servicing the HTTP server is blocked and doesn't call the message pump anymore. So no event is triggered nor handled and nothing happend any more regarding socket I/O which - as you know - is event driven.OK, you shall tell you that my answerstring is between a try...except :tryTHttpConnection(Client).AnswerString(Flags, '', 'text/html; charset=iso-8859-1', '', MyAnswer);except on E: Exception do beginWriteToLog(Format('AnswerString (%s) : %s' + #13#10 + '[LISTIN] : %s', [E.ClassName, E.Message, ListIn.Text]));// On relance la connection car le sendstream a échoué THttpConnection(Client).StartConnection; end;end;But no log files on the disk T_T gratefully, Guillaume ROQUES CANYON Technologies -- 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] [THTTPServer] Answers blocked ?
Hi, we are using ICS components for a Web server, developed as a windows service, since a long time now and everything work fine. But we just install it in a hospital and found problems concerns answers from the web server. Client side: sending a request through a form, then the browser displays Pending + server name. Server side : parse values of the requests (ListIn) and sending the response (ListOut) Client side: Always the message Pending + server name. Server side : The process have a normal activity but the web server seems to loop on sending, a stop / start on the service puts things in place. What I describe here is not constant (too easy!) , the user can work for some time and then it falls into this loop. What we see is that often happens in the morning and in the early afternoon, testing in the late afternoon show that the service and the web server is working properly (?), it could coincide with the number of users on the network Knowing that this is a network hospital, there are a lot of intermediate (proxy, switch, hub, firewall), maybe their configuration block my answers I would like to know if it evokes something to someone, just to have a clue or a way to look for. For the ICS component I 'd also like know how to get out of the blocking loop . Is there a way to detect that sending failed or unsuccessful ? Client side, I understand that it could be, as he interrogates the server, but server side ? I hope to have been sufficiently clear on the description of the problem, I'll try to have more information on the architecture of network . Guillaume ROQUES CANYON Technologies -- 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