After 2008-09-11, nsphp stopped working, even with the latest update to 
non-obsolete functions, it looks like something in the core flow, 
especially streaming part doe snot work properly.

I tried all versions and the latest stable is marked in ChangeLog at 
2008-09-11.

This is only HTTP related and it could be problem in nsphp, but it was 
very stable until functions it used became obsolete. I started using 
Ns_ConnWriteData with or without NS_CONN_STREAM and browsers stopped 
showing web pages.

These functions would tell that streaming is required and no 
Content-Length will be supplied:

Ns_ConnSetRequiredHeaders(ctx->conn, ctype, -1);
Ns_ConnFlushHeaders(ctx->conn, SG(sapi_headers).http_response_code);

Then
Ns_ConnWriteData without any flags would just send data to the browser

In new code, the server does all things automatically but NS_CONN_STREAM 
flags is required to tell that we are streaming. Flush is not used 
anymore. When i telnet i get page back without content-length but still, 
every second request hangs or comes empty.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to