[twsocket] issues with wndcontrol's message dispatch mechanism

2013-05-31 Thread Merijn Bosma
his doesn't feel like a proper solution though and in that case the problem could pop up again when more sockets are used. Arno, (I think you came up with the message dispatch approach), I'm curious to your thoughts and hope you (or we) can think of a good way to tackle the problem. tia

Re: [twsocket] RES: issues with wndcontrol's message dispatch mechanism

2013-05-31 Thread Merijn Bosma
erywhere that I need messaging, because ICS shared handle approach uses way less system resources! Best Regards Eric -Mensagem original- De: TWSocket [mailto:twsocket-boun...@lists.elists.org] Em nome de Merijn Bosma Enviada em: sexta-feira, 31 de maio de 2013 12:46 Para: twsoc...@elists.org A

Re: [twsocket] RES: issues with wndcontrol's message dispatch mechanism

2013-06-02 Thread Merijn Bosma
Hi Arno and others, I have a simple one-click app which shows some aspect of the problem (unexpected drop, unexpected data, etc) at near 100% reproduction change. Should I put it on the mailing list or should I sent it directly? Merijn On 1-6-2013 02:31, Merijn Bosma wrote: Hi Eric and Arno

Re: [twsocket] RES: ICS Crash Test

2013-06-03 Thread Merijn Bosma
Hi Guys, Good to hear you have reproduced it Arno (although I'd rather have that I just made a noob mistake, easier to fix ;)). I can also confirm that I can reproduce on a machine without firewall / security software. Maybe to triple check, I've only seen WSAASyncSelect notification messa

Re: [twsocket] Shared handles problem (fixed)

2013-06-03 Thread Merijn Bosma
Thanks for the quick fix Arno! Did Francois agree with the solution found by Eric? Merijn On 3-6-2013 21:57, Arno Garrels wrote: Hi, Eric Fleming Bonilha found a serious bug with closing the socket. The problem was that winsock may continue to post notification messages after closesocket() has

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-08 Thread Merijn Bosma
Do you have good separation between the different XML blocks on data level? Merijn On 8-10-2013 13:14, Graham Powell wrote: XML data will be received. After I have processed it, I will need to send an XML message back (containing ACK or NACK) to the client. Looks like LineMode=false is what I n

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-08 Thread Merijn Bosma
been acknowledged. If I don't respond at all the client will timeout, close the socket connection, re-open it and send the original message again. Graham -Original Message----- From: Merijn Bosma [mailto:bo...@xs4all.nl] Sent: 08 October 2013 12:18 To: ICS support mailing Cc: Graham Powe

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-09 Thread Merijn Bosma
Alternatively you start a timer with short interval (100 ms) when you receive data, reset the timer each time you receive data and keep adding the data to a buffer. Once the timer triggers you can assume you have all data. This way it keeps working of the XML layout changes :) Merijn On 9-10-

Re: [twsocket] Post data lost

2013-10-12 Thread Merijn Bosma
Laurent, Sent Avast an email explaining what you run in, they are very reasonable to make changes. Merijn On 12-10-2013 15:32, Dod wrote: Hello, This is not new fact, AV containing Network layer filtering may have bad impact over network performances and also can change data content on-the-

[twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-03 Thread Merijn Bosma
Hi all, For a current project I need to build an HTTP server to which data can be POSTed, so I build one using OverbyteIcsWebServ.dpr as an example. I ran into stability problems, and starting slimming my code down to isolate the problem. I'm now at a point where it seems to be an issue in ICS

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-03 Thread Merijn Bosma
I just noticed I can't attach a file through the mailing list (makes sense), so I've put the zip file with HTTPPoster sources online: http://www.xs4all.nl/~bosma/HTTPPoster.zip regards, Merijn On 03/09/2014 23:34, Merijn Bosma wrote: Hi all, For a current project I need to bui

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-03 Thread Merijn Bosma
Form1.FormDestroy(Sender: TObject); begin fMyHTTPServer.Free(); end; procedure TForm1.Log(st: string); begin MemoLog.Lines.Add(FormatDateTime('hh:nn:ss.zzz - ', Now()) + st); end; procedure TForm1.OnClientConnect(Sender, Client: TObject; Error: word); begin // Log('client connected&#x

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Merijn Bosma
Hi Angus, Thanks for the idea, can I upload files from software instead of using the webpage? Thanks, Merijn On 04/09/2014 13:25, Angus Robertson - Magenta Systems Ltd wrote: For a current project I need to build an HTTP server to which data can be POSTed, so I build one using OverbyteIcsWe

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Merijn Bosma
Duh, looked at the page but didn't real bottom lines :\ sorry for that. No, I can't reproduce using that URL, I'm not really sure what triggers the situation (see the fact that calling TMemo.Lines.Add() seems to avoid the problem). I'm currently adding debug log into ICS, and it seems that at

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Merijn Bosma
Hi Angus, I wasn't aware the /cg was in the filename, it was there unintentionally. I've tried a number of times with this url http://www1.telecom-tariffs.co.uk/testing/uploadfile.htm?FileName=merijn.test Can you please confirm if the upload went ok? thanks, Merijn On 04/09/2014 16:30, Angus

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Merijn Bosma
Hi Angus, While I agree with you, the issue seems to be a little more complex. I've tried this connection over the internet, client on a remote location, server running locally. It still shows the same issue. What's ever more odd is that I switched the writing to TMemo.Lines with a sleep(), to

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-10-21 Thread Merijn Bosma
To close this one (sort of), The problem disappears when I use the OverbyteIcsHttpSrv.pas from the zipped daily snapshot (http://wiki.overbyte.be/arch/icsv8w.zip). regards, Merijn On 03/09/2014 23:34, Merijn Bosma wrote: Hi all, For a current project I need to build an HTTP server to

[twsocket] when is OpenSSL connection ready?

2015-06-12 Thread Merijn Bosma
Hi all, I'm currently setting up a connection using OpenSSL for the first time. Things are going well, but I'm unsure when I can conclude (on server side) that a client is fully authenticated. I'm looking into the OnClientConnected, OnClientDisconnected and OnSSLHandshakeDone events. For a

Re: [twsocket] when is OpenSSL connection ready?

2015-06-12 Thread Merijn Bosma
Asked a bit too soon it seems, I just found the PeerCert.VerifyResult, which is 0 if authentication is OK. If some can confirm this is indeed the trick that would be great. Merijn On 12/06/2015 15:58, Merijn Bosma wrote: Hi all, I'm currently setting up a connection using OpenSSL fo

Re: [twsocket] when is OpenSSL connection ready?

2015-06-12 Thread Merijn Bosma
Thanks Angus, that answers my question. Have a nice day! Merijn On 12/06/2015 16:13, Angus Robertson - Magenta Systems Ltd wrote: I'm currently setting up a connection using OpenSSL for the first I'm unsure when I can conclude (on server side) that a client is fully authenticated. Not sure i

[twsocket] SSL problem (server stops receiving data)

2015-11-24 Thread Merijn Bosma
Hello all, I'm struggling with an issue which occurs when we use OpenSSL on a normal socket (TSslWSocketClient connecting to TSslWSocketServer). If put very short, the problem means that at some point, data sent from the client to the server is never received by the server. If this state occ

Re: [twsocket] SSL problem (server stops receiving data)

2015-11-24 Thread Merijn Bosma
Hi Angus, I agree with what you are saying, but in this case this is not the problem. The only reason this app works like this, is because this seems to be the easiest way to reproduce this same issue which happens in a larger app, which does use a FIFO etc. Log clearly shows that the two rand

Re: [twsocket] SSL problem (server stops receiving data)

2015-11-25 Thread Merijn Bosma
rijn On 24/11/2015 18:22, Merijn Bosma wrote: Hi Angus, I agree with what you are saying, but in this case this is not the problem. The only reason this app works like this, is because this seems to be the easiest way to reproduce this same issue which happens in a larger app, which does

[twsocket] speed of OpenSSL

2015-11-25 Thread Merijn Bosma
Hi all, We're currently working on a client server model which uses OpenSSL for normal socket connections (TSslWSocketClient connecting to TSslWSocketServer). Currenlty, the server is used to serve content at request of the client. When we do a speed test without OpenSSL (TWSocketClient connec

Re: [twsocket] SSL problem (server stops receiving data)

2015-12-08 Thread Merijn Bosma
Hi Angus, I only mentioned the renegotiation because when I found references to that when trying to solve this problem, I'm not sure if this is actually what causes it. I'm not initiating any renegotiation myself, nor have I seen anything about that in the logs. Meanwhile, I haven't been abl

Re: [twsocket] SSL problem (server stops receiving data)

2016-01-29 Thread Merijn Bosma
Hi All, We've hired someone to look into this issue, this resulted in finding the probable cause of this issue, and a fix. It would be great if someone could sort of validate the conclusion and fix. If all is OK, how to get these changes into the ICS codebase? Thanks, Merijn On 12/8/2015 17

Re: [twsocket] SSL problem (server stops receiving data)

2016-02-02 Thread Merijn Bosma
Thanks for the update Angus! Merijn On 2/1/2016 20:42, Angus Robertson - Magenta Systems Ltd wrote: We've hired someone to look into this issue, this resulted in finding the probable cause of this issue, and a fix. It would be great if someone could sort of validate the conclusion and fix. If a

Re: [twsocket] From Indy to ICS and ICS implementation

2016-07-22 Thread Merijn Bosma
Hi MC, Short some thoughts, maybe they can help you on the way. Since ICS is async, all socket handling is done in the same thread, that means it will always be done serial and not parallel. Therefor there is no real need to put stuff in a thread list. If you receive information from a device

Re: [twsocket] Major new REST and OAuth components

2018-05-14 Thread Merijn Bosma
Hi Angus, Thanks so much for this, I'm about to start development for an interface based on oauth2, will keep you posted. regards, Merijn On 5/3/2018 19:54, Angus Robertson - Magenta Systems Ltd wrote: SVN and the overnight zip have been updated with three new major units and two new demos

Re: [twsocket] Idle Socket is closed even with KeepAlive under windows

2018-07-12 Thread Merijn Bosma
Do you have any software which came from the vendor which works with this device? If yes you can use WireShark to sniff the traffic and see what is being sent to avoid the connection is being closed. Merijn On 7/12/2018 13:57, Angus Robertson - Magenta Systems Ltd wrote: (reply from origina

[twsocket] Windows Server OS vs workstation OS

2018-09-05 Thread Merijn Bosma
In several threads on this mailing list I've seen the statement that a non server version of Windows is less suited to handle many socket connections. Is there anyone who can provide some technical information about the differences between a server and non-server version of Windows with regar