Or you can try to replace ReturnCharData in return.c and see if this
works (i did not test it):
static int
ReturnCharData(Ns_Conn *conn, int status, CONST char *data, int len,
CONST char *type, int sendRaw)
{
Conn*connPtr = (Conn *) conn;
int result;
T
I think the only solution here will be to use Chunked-Encoding to output
encoded content, in this case Content-Length should be removed fromthe
headers.
Ns_ConnWriteVChars handles that, so it shoudl be chnaged i guess.
Bernd Eidenschink wrote:
Am Mittwoch, 12. Juli 2006 15:23 schrieb Bernd Ei
Am 12.07.2006 um 22:04 schrieb Mike:
mmap is good because it kind of allows zero-copy from usercode..
however it's not useable in my situation directly because of the
32-bit address space restriction - can't mmap 65GB (650MB*100) of
address space... The solution I've seen others use is to mma
On Wed, Jul 12, 2006 at 04:03:37PM -0400, Vlad Seryakov wrote:
> Naviserver does it automatically, it was ported a long time ago
Awesome, that's good to know.
> > Cache compiled Tcl page bytecode
> >
> > https://sourceforge.net/tracker/?func=detail&aid=689515&group_id=3152&atid=353152
--
A
On 7/12/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
I could be wrong, never used sendfile before.
The code you can check is driver.c, WriterThread, and bufsize parameter
can be used to define buffer.
Excerpt from sendfile(2) on FreeBSD:
When using a socket marked for non-blocking I/O, se
Naviserver does it automatically, it was ported a long time ago
Andrew Piskorski wrote:
On Wed, Jul 12, 2006 at 03:00:17PM -0400, Mike wrote:
Subject: [naviserver-devel] Questions about NS details... (scalability, lib
changes)
Does there exist a caching mechanism for dynamically generated t
Hi Mike,
> The project for which I am considering NS will have a dynamic and very
> large static part. There will be many very large (650MB) static files
> that people will download. It is hard for me to judge what the
> performance of serving these files with NS will be.
It depends a little bi
On Wed, Jul 12, 2006 at 03:00:17PM -0400, Mike wrote:
> Subject: [naviserver-devel] Questions about NS details... (scalability, lib
> changes)
> Does there exist a caching mechanism for dynamically generated tcl/adp
> pages? If it does, where can I find docs for how it works/when the
> cache is
On Wed, Jul 12, 2006 at 03:00:17PM -0400, Mike wrote:
> Of course benchmarking would be the ideal route, however I have the
> pleasure of writing the code now, and the hardware for this project
> won't be purchased until a while from now.
Why do you need special hardware to run you benchmark? Ju
I could be wrong, never used sendfile before.
The code you can check is driver.c, WriterThread, and bufsize parameter
can be used to define buffer.
I was considering using mmap, but somewhere i heard that too many
mmapped files could be a problem for the server.
Mike wrote:
Async IO i mean
Async IO i mean, writer thread does loop and sends as much as possible
chunks from the files, same way as driver thread reads multiple chunks
of requests from multiple clients. sendfile blocks, so you will need 10
threads for 10 clients at the same time, in case of writer thread, it
can alone tran
what I mean by this is not the cache - but the initial tcl library
loaded at server startup. I would like to know if it's possible to
somehow reload this without shutting down the entire web server.
check ns_ictl command, it can do it
--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
ht
is 5 vs 2 a typo...? Also, what constitutes "large files" in this
situation - is it the "writersize" argument, or is there something
else? I am nor sure how "async IO" compares to sendfile(2) - can you
please comment on this?
Typo,
Yes, writersize define the size of the file should be greate
On 7/12/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
Some time ago i added writer feature to NS, when configured in nssock
section as
ns_param writerthreads 2
NS will create 5 threads that will perform serving large files to the
clients leaving connection threads to do dynamic parts. Those write
Some time ago i added writer feature to NS, when configured in nssock
section as
ns_param writerthreads 2
NS will create 5 threads that will perform serving large files to the
clients leaving connection threads to do dynamic parts. Those writer
threads are serving multiple connections at the s
Two unrelated questions...
The project for which I am considering NS will have a dynamic and very
large static part. There will be many very large (650MB) static files
that people will download. It is hard for me to judge what the
performance of serving these files with NS will be. Of course
b
I am using nsopenssl from ALserver CVS, works and compiles fine.
Mike wrote:
All,
I am unable to find SSL support in the code. There is a #define
NS_DRIVER_SSL , however it does not appear to be providing the TLS/SSL
capabilities, just changing the default parameter values for the
driver. Am
All,
I am unable to find SSL support in the code. There is a #define
NS_DRIVER_SSL , however it does not appear to be providing the TLS/SSL
capabilities, just changing the default parameter values for the
driver. Am I looking in the wrong place?
Hi Mike,
> 1) Are you or the other developers committed to fixing bugs that do
> not affect your business? Again, this is not hostile - but I want to
> know, since the dev. team is small, if I run into bugs, will I be told
> "we work on the parts we need, feel free to fix it and submit a patch"
Am 12.07.2006 um 18:13 schrieb Mike:
On 7/12/06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
Our fork (15.02.2005) was motivated with similar reasons. All of us
depend (to a high extent) to the server code which means that we'd
like
to have certain "influence" about the direction of the dev
Yes, all bugs will be fixed, regardless of how Naviserver is used in our
businesses, the whole project is intended to be bug-free and stable
and usable for everybody.
Some parts were merged from AS 4.5 recently, you can check ChangeLog
from the CVS HEAD, more may be added but this is not the
Am Mittwoch, 12. Juli 2006 15:23 schrieb Bernd Eidenschink:
> it looks like the mechanism of changing the encoding works as expected, but
> the computation of the correct contentlength not.
ok. I think this is going on:
1. NsTclReturnObjCmd
If ns_return is called _without_ -binary switch, Ns_Conn
On 7/12/06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
Our fork (15.02.2005) was motivated with similar reasons. All of us
depend (to a high extent) to the server code which means that we'd like
to have certain "influence" about the direction of the develompent.
This proved to be a very time con
Am 12.07.2006 um 16:22 schrieb Andrew Piskorski:
On Wed, Jul 12, 2006 at 11:19:12AM +0200, Zoran Vasiljevic wrote:
of that, some were fiercely opposed. Well, what would you do in such
case?
I would have started actively and frequently committing code to the
AOLserver CVS, as Dossy explicitl
On Wed, Jul 12, 2006 at 11:19:12AM +0200, Zoran Vasiljevic wrote:
> of that, some were fiercely opposed. Well, what would you do in such
> case?
I would have started actively and frequently committing code to the
AOLserver CVS, as Dossy explicitly asked/challenged you to do, rather
than merely
Hi,
it looks like the mechanism of changing the encoding works as expected, but
the computation of the correct contentlength not.
I downloaded the same page with 'ns_return', one time UTF-8 and one time
ISO-8859-15. The download of the latter stops at the correct number of bytes
but the Conte
Am 12.07.2006 um 10:15 schrieb Mike:
Hello,
Please do not interpret this as any sort of hostile request - I have
read and searched all I could, but I am unable to figure out why
NaviServer was forked from AOLserver and what the goals of the current
development team are (why are they/you worki
Hi,
maybe you can give me a hint whats going on...
Background: My app uses a registered filter and proc to handle requests to
files. ADP files (UTF-8) are ns_adp_parse'd (including data from database,
UTF-8) and ns_returned (w/o -binary). I don't do any mapping of ADP files via
config, additi
Hello,
Please do not interpret this as any sort of hostile request - I have
read and searched all I could, but I am unable to figure out why
NaviServer was forked from AOLserver and what the goals of the current
development team are (why are they/you working on NaviServer)? I am
very excited to
29 matches
Mail list logo