EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Concurrent request with SBB

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#23708
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?
#23709
Posted: 02/25/2013 10:00:57
by Ken Ivanov (EldoS Corp.)

Hello Joan,

What kind of requests to you intend to perform and on what platform?
#23710
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

Thanks
#23711
Posted: 02/25/2013 12:25:33
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

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.
#23712
Posted: 02/25/2013 12:32:19
by Eugene Mayevski (EldoS Corp.)

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
#23713
Posted: 02/25/2013 12:37:52
by Ken Ivanov (EldoS Corp.)

Joan,

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.
#23893
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?
#23894
Posted: 03/01/2013 11:03:12
by Vsevolod Ievgiienko (EldoS Corp.)

Could you clarify what do you mean by *recycle*.
#23895
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
#23913
Posted: 03/04/2013 01:20:33
by Vsevolod Ievgiienko (EldoS Corp.)

Yes you can reuse them however you should take care of synchronization for threads that will use these objects.
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 761 times

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




|

Back to top

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

Got it!