Re: Patch: Camel stream filter waits properly for slow streams



This looks right to me,

Please commit

On Tue, 2008-05-20 at 16:10 +0200, José Dapena Paz wrote:
> 	Hi,
> 
> 	This patch for tinymail modifies a bit the implementation of do_write
> method in camel_stream_filter, to make it not fail simply because the
> stream is slow. In my case I'm getting problems writting to a bluetooth
> stream, as it sometimes writes less than the full buffer, and then the
> stream filter returns -1.
> 
> 	Anyway, it seems that my code adds an active wait. How could I fix
> this? Any safe idea?
> 
> 	Changelog entry would be:
> * libtinymail-camel/camel-lite/camel/camel-stream-filter.c:
> 	* (do_write): if the camel_stream_write call does not write the
> 	  full buffer but it's not due to an error, then loop to go on 
> 	  writing the stream.
> 
> _______________________________________________
> tinymail-devel-list mailing list
> tinymail-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/tinymail-devel-list
-- 
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]