EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Concurrent request with SBB

Posted: 02/25/2013 09:49:35
by Joan Puig (Basic support level)
Joined: 02/14/2013
Posts: 6

He there,
It is possible to do concurrent request with the SBB library?? so can I do 20 request at the same time with different threads?
Posted: 02/25/2013 10:00:57
by Ken Ivanov (Team)

Hello Joan,

What kind of requests to you intend to perform and on what platform?
Posted: 02/25/2013 12:19:26
by Joan Puig (Basic support level)
Joined: 02/14/2013
Posts: 6

Hi Ken,

I'm using c# and I want to request several images at the same time and check the SSL certificate

Posted: 02/25/2013 12:25:33
by Vsevolod Ievgiienko (Team)


Do you want to request these images using HTTPS protocol? If yes then you can perform such requests using TElHTTPSClient. Please refer to our sample that is located in \EldoS\SecureBlackbox.NET\Samples\C#\HTTPBlackbox\Client\HTTPGet folder. These you can also find a sample code for certificates validation.
Posted: 02/25/2013 12:32:19
by Eugene Mayevski (Team)

Regarding certificate check - one instance of TElX509CertificateValidator class can NOT be used for several concurrent requests. This applies to transport component as well. So the proper way is to create an instance of TElHTTPSClient and an instance of TElX509CertificateValidator for each parallel request. Of course this is not needed when you reuse one instance of TElHTTPSClient to retrieve files consequently.

Sincerely yours
Eugene Mayevski
Posted: 02/25/2013 12:37:52
by Ken Ivanov (Team)


A side note - you won't succeed with 20 parallel threads in certain restricted environments, such as WinRT or Windows Phone. Yet on desktop and server platforms you'll be just fine.
Posted: 03/01/2013 09:46:55
by Joan Puig (Basic support level)
Joined: 02/14/2013
Posts: 6

Is it wise to recycle the TElHTTPSClient and the TElX509CertificateValidator objects?
Posted: 03/01/2013 11:03:12
by Vsevolod Ievgiienko (Team)

Could you clarify what do you mean by *recycle*.
Posted: 03/01/2013 11:32:19
by Joan Puig (Basic support level)
Joined: 02/14/2013
Posts: 6

If I do a request A with one instance of TElHTTPSClient and TElX509CertificateValidator, I will reuse this instances for the other requests
Posted: 03/04/2013 01:20:33
by Vsevolod Ievgiienko (Team)

Yes you can reuse them however you should take care of synchronization for threads that will use these objects.



Topic viewed 905 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!