cURL / Mailing Lists / curl-library / Single Mail

curl-library

thread stack size

From: Jean-Yves Lefort <jylefort_at_brutele.be>
Date: Sat, 20 Mar 2004 12:08:47 +0100

Hi,

In lib/content_encoding.c, a 64k stack buffer is used. On some
platforms, the default thread stack size is too small to hold that
buffer. To use libcurl in a multi-threaded program, the programmer has
to manually specify a thread stack size.

You should explicitly state the required stack size in the documentation
and/or define some CURL_NEEDED_STACK_SIZE constant.

This issue might be the cause of the BSD problem reports mentioned in
http://curl.haxx.se/libcurl/threadsafe.html. For instance, FreeBSD has a
64k default thread stack size.

Regards,
Jean-Yves Lefort

-- 
Jean-Yves Lefort
jylefort_at_brutele.be
http://lefort.be.eu.org/

  • application/pgp-signature attachment: stored
Received on 2004-03-20