Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Multithread requests
Multithread requests
Is there a way to send requests through threads? Like in uURLRequest example but with threads
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Multithread requests
Hi,
Chromium handles all connections using multiple processes and threads internally.
Chromium handles all connections using multiple processes and threads internally.
Re: Multithread requests
Do I need to create the TCEFurlRequestClientComponent on each thread or do I need to use one TCEFurlRequestClientComponent for all threads?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Multithread requests
Both solutions are valid.
If you use the same component for all connections you may need to add some custom HTTP header to differentiate them.
If you use the same component for all connections you may need to add some custom HTTP header to differentiate them.
Re: Multithread requests
Not a good way, how can i use a connection component for each thread?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Multithread requests
Create them at runtime with a nil owner and assign the events to custom thread procedures.