0

I have a program that connects to the server with BIO (OpenSSL) and I want to make it with several threads. Should I do a new ssl connection inside every thread or is it possible to send requests from several threads through the common ssl connection?

AϟϟTERIX
  • 109
  • 3
  • 13
  • what protocol are the requests using? – Warren Dew May 15 '16 at 02:30
  • I'm not familiar with the BIO library, but in principle, it is possible to send multiple https requests from several threads through a common https connection. Two things to keep in mind: (1) there must be synchronization between the threads, so don't expect major speedups the way you would with parallel computing on multiple threads, and (2) the requests must be within the constraints allowed by HTTP 1.1 or HTTP/2, and you must be talking to a server that supports the relevant protocol. – Warren Dew May 15 '16 at 12:19
  • 1
    @WarrenDew Thanks. I made new connection for every thread) – AϟϟTERIX May 15 '16 at 12:20

1 Answers1

0

I made a new connection in every thread. Faster, simpler

AϟϟTERIX
  • 109
  • 3
  • 13