[issue21448] Email Parser use 100% CPU

jader fabiano report at bugs.python.org
Tue May 6 21:53:49 CEST 2014


jader fabiano added the comment:

Sorry!
Correct line
self.fileDescriptor = open( file, 'rb')

2014-05-06 16:51 GMT-03:00 jader fabiano <report at bugs.python.org>:

>
> jader fabiano added the comment:
>
> I am openning a file and I am passing the File Descriptor to this function
> Parse().parse( fp ):
> This file has two attachments
> Example:
> self.fileDescriptor( file, 'rb')
> headers = Parser().parse(self.fileDescriptor )
> #Here the process starts to consume  100% of the CPU and It takes around
> four minutes to go the next line.
> print 'Headers OK'
>
> The File's size is 12M
>
> Thanks.
>
> 2014-05-06 16:31 GMT-03:00 R. David Murray <report at bugs.python.org>:
>
> >
> > R. David Murray added the comment:
> >
> > Can you provide more details on how to reproduce the problem, please?
>  For
> > example, a sample message and the sequence of python calls you use to
> parse
> > it.
> >
> > ----------
> >
> > _______________________________________
> > Python tracker <report at bugs.python.org>
> > <http://bugs.python.org/issue21448>
> > _______________________________________
> >
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue21448>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21448>
_______________________________________


More information about the Python-bugs-list mailing list