Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: CookieManager thread safety
| Subject: | Re: CookieManager thread safety |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 9 May 2006 10:11:49 |
"dk_sz" <dk_sz@hotmail.com> wrote in message
news:44608768@newsgroups.borland.com...
> That said, I was under the impression that the
> cookie manager was supposed to be shareble?
Storing and retreiving cookies from the CookieManager is thread-safe, as
TIdCookieManager uses a TMREWSync internally. But that does not mean that
the CookieManager object itself is sharable across threads, because as you
already noticed, the VCL core is not thread-safe. It can safely be shared
with multiple TIdHTTP objects in the same thread, though.
Gambit