Re: [Cppcms-users] Segmentation fault
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-10-21 15:48:23
|
> > > > I'm starting to use CppCMS ("cppcms-0.99.3.tar.bz2" downloaded from > > SourceForge), and noticed that when generating very long responses, the > > executable ends with a segfault. I am using the built-in server, and I >reduced > > the code to the following: > > > [...] > > If it helps, I have written an equivalent asynchronous application, and the > error does NOT occur: > > [...] > > When do you recommend using an application of one type or the other? > > Best regards, > > Mario > No, it is just a bug I had already reproduced and I have a direction to fix it. What happens that the connection socket incorrectly remains in non-blocking mode causing a fault when getting to EWOULDBLOCK in synchronous mode, of course this does not happen in async mode as EWOULDBLOCK is expected. It is just little bit more complex then "few lines of fix" I'll fix this bug ASAP and I'll let you know, hopefully today or tomorrow it would be done. Artyom |