Dear all,
Under unix/linux/mac, there is a dup() function to duplicated a file
descriptor, while under windows (since vista) there are WSADuplicateSocket and
WSASocket to do that.
Now apr_socket_t type doesn’t have that API, but has apr_os_sock_get to get
system socket from apr socket and apr_o
It was my fault to misunderstood apr pool.
My ill design was "each thread will create a condition variable with a global
pool".
Temporarily I put my apr_thread_cond_create into mutex lock, and my server has
been running well for hours.
Next I prepare to let each thread create its own pool.
Thank
No question now, I misunderstood the interface.
-邮件原件-
发件人: Branko Čibej [mailto:br...@apache.org]
发送时间: 2013年5月31日 17:37
收件人: dev@apr.apache.org
主题: Re: apr_palloc is not thread safe
On 31.05.2013 06:15, TROY.LIU 劉春偉 wrote:
> Thanks for reply, I got it. Now the problem is my APIs does n
Thanks for reply, I got it. Now the problem is my APIs does not expose
apr_pool_t to user like apr, so my APIs are not thread safe.
Best Regards
Chunwei Liu
-Original Message-
From: Philip Martin [mailto:codematt...@ntlworld.com] On Behalf Of Philip Martin
Sent: Thursday, May 30, 2013
Dear all,
In our practice, we found two threads get same address returned by
apr_palloc. It will happen about one hour later after our server starts.
We are using apr 1.4.5, the issue still exists in the latest subversion.
APR_DECLARE(void *) apr_palloc(apr_pool_t *pool, apr_size_t in_size)
Thanks jeff for your reply. I installed the libapr-1 from the Cygwin official
mirror. The APR_HAS_THREADS is 0 in the /usr/include/apr-1/apr.h. So I have to
give this try.
-Original Message-
From: Jeff Trawick [mailto:traw...@gmail.com]
Sent: Wednesday, September 05, 2012 7:09 PM
To: de
Dear all,
I failed in opening the thread feature when configuring on Cygwin on windows
7.
I find the configure will disable the enable_threads on cygwin and enable it
on mingw. Why?
Does apr support thread on Cygwin?
Configure:
25144*mingw*)
25145OSDIR="win32"
25146enabl
Thank you, I will file bug in http://issues.apache.org/bugzilla/.
-Original Message-
From: Jeff Trawick [mailto:traw...@gmail.com]
Sent: Wednesday, July 18, 2012 7:34 PM
To: TROY.LIU 劉春偉; dev@apr.apache.org
Subject: Re: Please confirm the freetds bug in apr-util-1.4.1.tar.gz
On Wed, Jul
Dear all,
I found a bug and don’t know where to file it. Just send the mail to let you
know.
In the apr_dbd_freetds.c +630, function freetds_open:
sql = apr_palloc (pool, sizeof (apr_dbd_t)); // should be apr_pcalloc, like
apr_dbd_pgsql_open.c +1231
if calls dbd_freetds_query after freetds_