[twsocket] Attach to a target thread?

2013-10-10 Thread Laurent Breysse
Hello I'm starting with ICS. I need to build a http webservice with 6 worker threads that process jobs. When a new client connection is open, data is fetched into a buffer until completion, by the main thread. Once the data is complete, a job is created, and pushed into one of the job queues (o

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Angus Robertson - Magenta Systems Ltd
> I'm starting with ICS. I need to build a http webservice with 6 > worker threads that process jobs. > I started my code based on the ThrdSvr sample project, I'm sure you can achieve what you need with thread server, but I've never done it, and you are also re-inventing the two existing web serv

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Laurent Breysse
Yes, my web service is already based on a HttpSvr component, not a WSocketServer. I looked at the ThrdSvr sample to understand how multithreading works with ICS. The problem is really that my worker threads are not available at the time the client socket needs to be attached to one of those, a

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Angus Robertson - Magenta Systems Ltd
> So my question: is there any way to attach a client connection to > another thread immediately, from the main thread? Probably, but I've said I've not done it myself, no need. Others may have done so, but I don't believe it necessary for your application. > The problem is really that my work

Re: [twsocket] Can't get https://yahoo.com with latest versionofTSslHttpCli

2013-10-10 Thread Arno Garrels
On Wednesday, October 09, 2013 7:42 PM [GMT+1=CET], Arno Garrels wrote: > In other words: How shall we handle this Location header: > "Location: http://yahoo.com:443/?s=https"; ? I just checked in a fix with Log: "Fixed a relocation bug with URL "https://yahoo.com"; by removing port "443" from t

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Laurent Breysse
Le 10/10/2013 12:57, Angus Robertson - Magenta Systems Ltd a écrit : So my question: is there any way to attach a client connection to another thread immediately, from the main thread? Probably, but I've said I've not done it myself, no need. Others may have done so, but I don't believe i

Re: [twsocket] Can't get https://yahoo.com with latest version ofTSslHttpCli

2013-10-10 Thread Albert Wiersch
> Did that work with ICSv7? Is it a regression? Actually, I'm not sure if it worked with v7... but I see you posted a fix. Thanks, Albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website

Re: [twsocket] Can't get https://yahoo.com with latest versionofTSslHttpCli

2013-10-10 Thread Albert Wiersch
> I just checked in a fix with Log: > "Fixed a relocation bug with URL "https://yahoo.com"; by removing port "443" > from the Host-header, otherwise relocation header returned by the server > had that port appended as well even though the new location was simple > HTTP." > > Search for "8.05" : >

Re: [twsocket] Can't get https://yahoo.com withlatest versionofTSslHttpCli

2013-10-10 Thread Arno Garrels
On Thursday, October 10, 2013 4:50 PM [GMT+1=CET], Albert Wiersch wrote: >> I just checked in a fix with Log: >> "Fixed a relocation bug with URL "https://yahoo.com"; by removing >> port "443" from the Host-header, otherwise relocation header >> returned by the server had that port appended as wel

Re: [twsocket] Can't get https://yahoo.com withlatest versionofTSslHttpCli

2013-10-10 Thread Albert Wiersch
> > So was this ultimately a yahoo relocation bug for including port 443 > > on the Location header? > > I do not know for sure as I do not know for sure whether it was a bug > in ICS. > I noticed that other clients actually received a location header without > the 443 port and they did not sent t

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread François Piette
>> So my question: is there any way to attach a client connection to >> another thread immediately, from the main thread? > Probably, but I've said I've not done it myself, no need. > Others may have done so, This is not always possible, at least without modifying TIcsWndControl. The problem

[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

Re: [twsocket] RES: Attach to a target thread?

2013-10-10 Thread François Piette
>> 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 servic