Re: Patch: avoid closing nss stream before all scheduled reads end
- From: Philip Van Hoof <spam pvanhoof be>
- To: José Dapena Paz <jdapena igalia com>
- Cc: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Re: Patch: avoid closing nss stream before all scheduled reads end
- Date: Tue, 06 May 2008 14:50:35 +0200
On IRC we discussed added some comments to the new functionality. Once
the comments are added, this is approved.
On Tue, 2008-05-06 at 13:47 +0200, José Dapena Paz wrote:
> Hi,
>
> This patch chould avoid some crashes that happen when we PR_Close and
> we have pending requests to read from the stream. With it we add a count
> of pending reads, and don't allow to read anymore when a close has been
> scheduled.
>
> The patch does not include the changelog entry, that would be like
> this:
> * libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c:
> * Protect PR_Reads and writes to avoid calls to PR_Close before one of
> them. Should avoid some crashes and bad memory accesses.
>
> _______________________________________________
--
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://pvanhoof.be/blog
http://codeminded.be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]