Re: [twsocket] Sending data from multiple threads on SSL doesn't work

2018-10-03 Thread Éric Fleming Bonilha
I understand But non-threaded is not an option.. our application is a high performance video management system, it must be multi-threaded, in fact we have a very highly threaded architecture, and it would create huge bottlenecks making it single threaded (for network message processing). This spec

Re: [twsocket] Sending data from multiple threads on SSL doesn't work

2018-10-03 Thread Éric Fleming Bonilha
Angus Funny thing, when the error happens, getlasterror from SSL returns: error:1408F10B:SSL routines:ssl3_get_record:wrong version number The disconnection is easily reproduceable by spawning a few threads Eric On Wed, Oct 3, 2018 at 2:01 PM Éric Fleming Bonilha wrote: > Angus >

Re: [twsocket] Sending data from multiple threads on SSL doesn't work

2018-10-03 Thread Éric Fleming Bonilha
Angus I'm trying to make a demo application to test this behavior, but now I'm stuck with another problem.. random disconnects.. I'm using latest ICS 8.53 with OpenSSL that is shipped with the ICS Whenever I start sending data from server -> client, the client will disconnect randomly. It happe

Re: [twsocket] Sending data from multiple threads on SSL doesn't work

2018-10-03 Thread Éric Fleming Bonilha
Hi Angus Thanks for the reply. This is indeed a strange problem, because there's no deadlock or locking problem, and the problem does not happen in a deterministic way.. its kind of random, so I have to keep it running for a few seconds or minutes, then it will stop, maybe when a certain condition

[twsocket] Sending data from multiple threads on SSL doesn't work

2018-10-02 Thread Éric Fleming Bonilha
Hi I'm experiencing a strange issue that I think could be related to OpenSSL, but I want to make sure.. In a simple explanation, I have a TWSocketServer which serves sockets on SSL. I have 1 client connected to it and I send video data through this socket to the client connected to my server. If

[twsocket] Fixed SSL changes

2017-04-26 Thread Éric Fleming Bonilha
Hi Angus Just want to thank you for fixing the problem on FD_Read of SSL socket in version 8.42 I just downloaded to use with Tokyo and saw the fix.. Thanks Eric -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/tws

Re: [twsocket] OpenSSL 1.1.0d and 1.0.2k support

2017-02-06 Thread Éric Fleming Bonilha
> The code you say you added is already there, but after the > > WSocket_Synchronized_WSAASyncSelect call, so what needs to be understood > is > if this call, and the related in the finally section of the try > block, is > really needed when not in a SSL request, as the non-SSL > version of the

Re: [twsocket] OpenSSL 1.1.0d and 1.0.2k support (?ric Fleming Bonilha)

2017-02-04 Thread Éric Fleming Bonilha
well On Feb 4, 2017 9:07 PM, "Éric Fleming Bonilha" wrote: Well do you know how long I've been asking them to fix this broken code? It has been months... The code is clearly broken and I've even provided demo programs showing one of the issues. Im already fed up... So I just

Re: [twsocket] OpenSSL 1.1.0d and 1.0.2k support (?ric Fleming Bonilha)

2017-02-04 Thread Éric Fleming Bonilha
Well do you know how long I've been asking them to fix this broken code? It has been months... The code is clearly broken and I've even provided demo programs showing one of the issues. Im already fed up... So I just fixed my local code and don't care anymore if they will fix it or not... This bug

Re: [twsocket] OpenSSL 1.1.0d and 1.0.2k support

2017-02-03 Thread Éric Fleming Bonilha
Angus Did you have a chance to check that SSL problem on FD_READ that we have? I have fixed my local copy of ICS and it works fine for both with and without SSL (We are using SSL for one equipment we are testing). inside TCustomSslWsocket.Do_FD_READ: I added if (not FSslEnable) or (FSo

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-12-06 Thread Éric Fleming Bonilha
016 at 5:48 PM, Éric Fleming Bonilha wrote: > Angus > > I have also uploaded the file to Dropbox: https://www.dropbox. > com/s/ces533zsvkseghs/ShowModal.rar?dl=0 > > Eric > > > On Fri, Dec 2, 2016 at 11:44 AM, Éric Fleming Bonilha < > e...@digifort.com.br> wr

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-12-05 Thread Éric Fleming Bonilha
Angus I have also uploaded the file to Dropbox: https://www.dropbox.com/s/ces533zsvkseghs/ShowModal.rar?dl=0 Eric On Fri, Dec 2, 2016 at 11:44 AM, Éric Fleming Bonilha wrote: > Angus > > Were you able to download the file? > > The file at WeTransfer will expire in 4

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-12-02 Thread Éric Fleming Bonilha
Angus Were you able to download the file? The file at WeTransfer will expire in 4 days Thanks -- 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] Compiling with SSL active changes socket behavior

2016-12-01 Thread Éric Fleming Bonilha
Angus Additionally I have added the file to WeTransfer using this link: https://we.tl/3haUyqyn41 So you have two places to download the file: https://we.tl/3haUyqyn41 and http://www.digifort.com/files/temp/ShowModal.rar I'm sure one of them will work for you Eric -- To unsubscribe or change you

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-12-01 Thread Éric Fleming Bonilha
Angus I don't understand what you mean.. I can download the file from http://www.digifort.com/files/temp/ShowModal.rar normally using Chrome or Edge And I did not see any message from you asking for that... If you sent any message to this list, it was not received.. Eric On Thu, Dec 1, 2016 a

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-11-30 Thread Éric Fleming Bonilha
Hello Angus Did you have some time to evaluate this issue? Thanks On Wed, Nov 23, 2016 at 12:20 AM, Éric Fleming Bonilha wrote: > Angus > > I have created a very simple demo application that shows how USE_SSL > changes the behavior of OnDataAvailable: > > Please

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-11-22 Thread Éric Fleming Bonilha
It really would be so much easier if you rewrote your application to > remove blocking modal dialogs from event handlers. > > Angus > > > Original Message > > *Subject:* Re: [twsocket] Compiling with SSL active changes socket > behavior > *From:* Éric

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-11-22 Thread Éric Fleming Bonilha
mponents in code. > > It really would be so much easier if you rewrote your application to > remove blocking modal dialogs from event handlers. > > Angus > > > Original Message > > *Subject:* Re: [twsocket] Compiling with SSL active changes socket > b

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-11-22 Thread Éric Fleming Bonilha
activate SSL it will simply break our whole software > because you are changing the receive behavior of all sockets > > Could someone please take this problem seriously and analyse the issue? > > I can show you over a TeamViewer session the effects of this on our > software > &g

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-11-21 Thread Éric Fleming Bonilha
ts of this on our software Thank you! Eric Fleming Bonilha On Wed, Aug 31, 2016 at 6:18 PM, Éric Fleming Bonilha wrote: > Angus > > Would you at least take a look at it again? Adding that line in SSL socket > before actually checking if SSL is being used is changing the beh

Re: [twsocket] Straw poll - Should ICS continue to support old OpenSSL versions?

2016-10-13 Thread Éric Fleming Bonilha
- Drop older version - Remove obsolete properties On Wed, Oct 5, 2016 at 5:46 AM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > The recent introduction of OpenSSL 1.1.0 required a lot of internal > changes in ICS which were made backward compatible with older versions.

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-08-31 Thread Éric Fleming Bonilha
Angus Would you at least take a look at it again? Adding that line in SSL socket before actually checking if SSL is being used is changing the behavior of the base class and breaking compatibility > Not quite sure why the V8.22 change in wsocket made this change, but it > was an important bug fi

[twsocket] RES: Compiling with SSL active changes socket behavior

2016-08-25 Thread Éric Fleming Bonilha
Tecnically, a showmodal is not total blocking process, although it blocks the current flow. Internally it will call a message loop that will keep processing windows messages so the application can run. This have always worked for years without any issue and my whole software is based on that, bas

[twsocket] RES: Compiling with SSL active changes socket behavior

2016-08-24 Thread Éric Fleming Bonilha
Nobody is receiving these e-mails?? De: Éric Fleming Bonilha [mailto:e...@digifort.com.br] Enviada em: Monday, August 15, 2016 7:08 PM Para: ICS support mailing Assunto: Re: Compiling with SSL active changes socket behavior Could anyone check this? Or at least acknowledge that it was

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-08-24 Thread Éric Fleming Bonilha
Could anyone check this? Or at least acknowledge that it was received? Thanks On Sat, Aug 13, 2016 at 3:13 PM, Éric Fleming Bonilha wrote: > I evaluated a little more on this behavior and realized that actually many > many parts of our software will open a SHOWMODAL dialog to the respo

Re: [twsocket] Compiling with SSL active changes socket behavior

2016-08-23 Thread Éric Fleming Bonilha
tead of calling some socket routine... Would someone please look into this issue? I can make some example application to demonstrate the behavior (I just don't know how to properly fix it) Thanks On Sat, Aug 13, 2016 at 2:50 PM, Éric Fleming Bonilha wrote: > Hi > > I recent

[twsocket] Compiling with SSL active changes socket behavior

2016-08-23 Thread Éric Fleming Bonilha
Hi I recently came across an issue with our software after updating to ICS 8.26 We previously used ICS 8.06 and its default compiling directives did not add SSL support, but 8.26 by default activates SSL and makes TWSocket class to be derived from SSL socket I don't know if the problem is relate

[twsocket] ICS with FPC

2016-02-28 Thread Éric Fleming Bonilha
Dear ICS team Does ICS supports FreePascal? I've seen from the include file that some work has been done in the past to make it compatible with FreePascal but maybe that was old work. I would like to know if you have any plans to support Lazarus and FreePascal? We are now starting to worry abou

[twsocket] Socket hanging at ntdll routine

2016-01-13 Thread Éric Fleming Bonilha
Hello all We have stumbled at a very strange issue with our software that uses ICS as core for sockets. This is not the first time that it happens and has happened in different customers but it is kind of rare.. What happens is that ASyncReceive routine from TCustomWSocket hangs in Ics_ioct

[twsocket] Webservices with TWSocket?

2013-10-22 Thread Éric Fleming Bonilha
Hello Do you have any customer or anything to consume webservices using TWSocket? I´m having big troubles with default Delphi webservice consumer (It crashes the application sometimes, when the host is down and we keep requesting data, and I think it must be related to HTTPRIO that uses Ind

[twsocket] RES: Attach to a target thread?

2013-10-10 Thread Éric Fleming Bonilha
François > I share this opinion. > I would let the client sockets attached to a single the thread (no necessarily the main thread) and handle all communication. Once a job has been received, then the data is passed to a worker thread, thru a queue, for processing. Probably a single queue serviced

[twsocket] RES: ICS-V8 is released

2013-10-03 Thread Éric Fleming Bonilha
This is great, congrats I already use ICS-8 in my application running in over 30.000 machines and I got to say that even in Beta stage I don´t have any issues :D Eric -Mensagem original- De: TWSocket [mailto:twsocket-boun...@lists.elists.org] Em nome de François Piette Enviada em: quinta

[twsocket] RES: RES: RES: Multi-Threading in TWSocketServer

2013-09-19 Thread Éric Fleming Bonilha
Arno, Thank you for your answers, I will do many tests here and I will keep you posted. Meanwhile, out of the box, how would you make a threaded TCP server using ICS today? I mean... I know how to make it with a single thread, just create TWSocketServer from a different thread that has a message

[twsocket] RES: RES: Multi-Threading in TWSocketServer

2013-09-18 Thread Éric Fleming Bonilha
>> My code inside the event triggers is fine for multi-thread >That is required indeed. For instance no access to the client list, no plain access to the VCL etc.. >Without having a look at your source code it's hard to say. Thanks, I just wanted to make sure that ICS itself would not have issu

[twsocket] RES: Multi-Threading in TWSocketServer

2013-09-17 Thread Éric Fleming Bonilha
> No, ICS is not thread-safe (out of the box)! Like the VCL is not thread-safe as well. Use of ThreadDetach and ThreadAttach just ensures that ICS-events trigger in the attached thread's context. There's more to serialize like access to the client list, etc. Ok, so if I use ThreadAttach and Threa

[twsocket] Multi-Threading in TWSocketServer

2013-09-16 Thread Éric Fleming Bonilha
Hello I have an application that TWSocketServer is running in main thread, consequently, all messages from clients are also processed by the main thread loop I have been able to change the processing thread of the clientes from main thread to a pool of threads that I have (By using ThreadDe

[twsocket] Shared handles problem

2013-05-30 Thread Éric Fleming Bonilha
Hope this time, my message is sent!!! After MUCH digging, I have come into something that I would like you to analyse..** ** First, the scenario... As I told before, I replaced all my handles by a derived class that I made called TSharedHandle, that is derived from TIcsWndControl So, wheneve