Truncated or oversized response headers received from daemon process with ctypes loadlibrary
<p>Hi I am getting following following message on trying to load my web page deployed through apache</p>

<blockquote>
  <p>"Truncated or oversized response headers received from daemon process"</p>
</blockquote>

<p>and in apache log</p>

<blockquote>
  <p>[info] mod_wsgi (pid=16368): Initializing Python.<br>
  [info] mod_wsgi (pid=16368): Process 'esapp' has died, deregister and restart it.<br>
  [info] mod_wsgi (pid=16368): Process 'esapp' terminated by signal 1<br>
  [info] mod_wsgi (pid=16368): Process 'esapp' has been deregistered and will no longer be monitored.</p>
</blockquote>

<p>I am using ctypes of module to load cpp library in setting file of django project like this</p>

<pre><code>VELEC_API_LIB = ctypes.cdll.LoadLibrary('/var/www/eswebsite/libvelec.so')
</code></pre>

<p>If I stop loading my cpp .so library and restart apache it runs fine and I am able to load web pages. But when I try to load my .so library the above mentioned error comes every time.</p>

<p>I want to load my .so library as it is part of my project on c-side.</p>

<p>any help will be appreciated??</p>