Re: [twsocket] Showstopped bug in ICS

2011-07-05 Thread Éric Fleming Bonilha
Hi Wilfried But it will break existing code that depents on this behaviour if wsoNoReceiveLoop is set. But you can easely derive from TWSocket and override do_fd_close method. Then it will behave good for your specifications and you will never have to change code again after updates. I see you

Re: [twsocket] Showstopped bug in ICS

2011-07-05 Thread Wilfried Mestdagh
Hi Eric, > I know, but if you still call OnDataAvailable with current socket > options, > for the ones that has not set wsoNoReceiveLoop (By default) the > behaviour > will still be the same right... for the ones that has set > wsoNoReceiveLoop > (like me) OnDataAvailable will still be called, and

Re: [twsocket] Showstopped bug in ICS

2011-07-04 Thread Éric Fleming Bonilha
Never done somthing like that, I guess you have to ensure that data is processed in the right order with such a design, as with Windows IOCP sockets as well. No problem here, I have a worker thread system, the data will always be processed in right order Yes, I understand, but there's a re

Re: [twsocket] Showstopped bug in ICS

2011-07-02 Thread Wilfried Mestdagh
> I know this is by design, but I believe that is why you have added > wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable... No this is addes to get out of a closed loop in case of users had slow code to process fast data. > software wasn´t being able to process over 150mbits of

Re: [twsocket] Showstopped bug in ICS

2011-07-02 Thread Arno Garrels
Éric Fleming Bonilha wrote: > Arno > > I use multiple threads to read the data from sockets, I actually have > a thread pool that process data. Never done somthing like that, I guess you have to ensure that data is processed in the right order with such a design, as with Windows IOCP sockets as w

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Éric Fleming Bonilha
Arno I use multiple threads to read the data from sockets, I actually have a thread pool that process data. This is my current code for OnDataAvailable from sockets: procedure TTCPSocketThread.HandleOnSocketDataAvailable(Sender: TObject; ErrCode: Word); begin // We can´t proceed on errors

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Arno Garrels
Arno Garrels wrote: > Éric Fleming Bonilha wrote: >> I know this is by design, but I believe that is why you have added >> wsoNoReceiveLoop so we don´t have to receive data in >> OnDataAvailable... >> >> By reading the socket using OnDataAvailable event I reached a >> bottleneck, my software wasn´

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Arno Garrels
Éric Fleming Bonilha wrote: > I know this is by design, but I believe that is why you have added > wsoNoReceiveLoop so we don´t have to receive data in > OnDataAvailable... > > By reading the socket using OnDataAvailable event I reached a > bottleneck, my software wasn´t being able to process ove

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Éric Fleming Bonilha
I know this is by design, but I believe that is why you have added wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable... By reading the socket using OnDataAvailable event I reached a bottleneck, my software wasn´t being able to process over 150mbits of incomming data because

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Wilfried Mestdagh
Hi, > it is expecting that my > event handler DO receive the data (But it doesn´t) and then, it locks > up on a loop! You have to receive the available data in the OnDataAvailable event handler. This is by design. If you want to process the data in another thread then the most obvious is that you

[twsocket] Showstopped bug in ICS

2011-06-30 Thread Éric Fleming Bonilha
Hi I believe I found a showstopper bug in ICS that lead my software to crash in many customers. The problem is with wsoNoReceiveLoop option from socket! In my program, I have to use wsoNoReceiveLoop in order to better process the data, I don´t want to process the data from the thread that fire