Re: Patch: avoid closing nss stream before all scheduled reads end



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]