[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

[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

[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] 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

[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

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

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
as well On Feb 4, 2017 9:07 PM, "Éric Fleming Bonilha" <e...@digifort.com.br> 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 alread

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

[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,

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

[twsocket] Compiling with SSL active changes socket behavior

2016-08-24 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

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

2016-08-24 Thread Éric Fleming Bonilha
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 <e...@digifort.com.br> wrote: > Hi > > I re

[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

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 <e...@digifort.com.br> wrote: > I evaluated a little more on this behavior and realized that actually many > many parts of our software will open

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

2016-11-22 Thread Éric Fleming Bonilha
e 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 Fleming Bonilha

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

2016-11-22 Thread Éric Fleming Bonilha
ut SSL, but we will need > SSL > soon, and if we 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 TeamVi

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

2016-11-22 Thread Éric Fleming Bonilha
t; > 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 > *

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

2016-11-21 Thread Éric Fleming Bonilha
this on our software Thank you! Eric Fleming Bonilha On Wed, Aug 31, 2016 at 6:18 PM, Éric Fleming Bonilha <e...@digifort.com.br> 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

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-12-06 Thread Éric Fleming Bonilha
8 PM, Éric Fleming Bonilha <e...@digifort.com.br> 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...@digif

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

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 <e...@digifort.com.br> wrote: > Angus > > Were you able to download the file? > > The file at WeTran

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 <e...@digifort.com.br > wrote: > Angus > > I have created a very simple demo application that shows how USE_SSL > changes the behavior of OnDataAva

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] 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

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 >

[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

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