caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Multithreaded https requests in ocamlnet netclient
@ 2012-11-27  2:54 Mike Lin
  2012-11-27 13:03 ` [Caml-list] AW: " Gerd Stolpmann
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Lin @ 2012-11-27  2:54 UTC (permalink / raw)
  To: Gerd Stolpmann, ocamlnet-devel, caml-list

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hello Gerd, all,

I'm trying to find the right incantations to make parallel https requests
from multiple threads using Http_client. (I know the library is capable of
multiple requests from one thread -- I have other strong reasons to use
multithreading.)

https://gist.github.com/4152047

This program generally segfaults for me at some random point during the 10
requests.  Compiled as in the comment in line 2 (ubuntu quantal,
libocamlnet-ocaml-dev 3.5.1, ocaml 3.12.1).

Permutations attempted:

1) Change https to http in google URL -- works as expected
2) Serialize requests by uncommenting line 35 -- works as expected
3) Move invocations of Ssl.init, Ssl.create_context,
HTTPS.https_transport_channel_type in and out of fresh_pipeline (which runs
in the worker threads) -- no help

Any suggestions? Thanks!

Mike Lin

[-- Attachment #2: Type: text/html, Size: 1099 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-26  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27  2:54 [Caml-list] Multithreaded https requests in ocamlnet netclient Mike Lin
2012-11-27 13:03 ` [Caml-list] AW: " Gerd Stolpmann
2012-11-28  1:43   ` [Caml-list] " Mike Lin
2013-09-26  8:34     ` [Caml-list] " Török Edwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).