[Webware-devel] Magic number?

2007-03-23 Thread Christoph Zwerschke
I recently stumbled over the following lines in ThreadedAppServer: def makeInput(self): return self._sock.makefile("rb",8012) Is there any reason why the number 8012 was chosen? I assume the intend was to use an 8192 Byte (8k) buffer, and this is just a typo, or am I ove

Re: [Webware-devel] Magic number?

2007-03-23 Thread Chuck Esterbrook
On 3/23/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > I recently stumbled over the following lines in ThreadedAppServer: > > def makeInput(self): > return self._sock.makefile("rb",8012) > > Is there any reason why the number 8012 was chosen? I assume the intend > was

Re: [Webware-devel] Magic number?

2007-03-23 Thread Christoph Zwerschke
Chuck Esterbrook wrote: > On 3/23/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: >> I recently stumbled over the following lines in ThreadedAppServer: >> >> def makeInput(self): >> return self._sock.makefile("rb",8012) >> >> Is there any reason why the number 8012 was ch

Re: [Webware-devel] Magic number?

2007-03-23 Thread Chuck Esterbrook
On 3/23/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Chuck Esterbrook wrote: > > On 3/23/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > >> I recently stumbled over the following lines in ThreadedAppServer: > >> > >> def makeInput(self): > >> return self._sock.m

Re: [Webware-devel] Magic number?

2007-03-23 Thread Christoph Zwerschke
Chuck Esterbrook wrote: > All sounds good except I wonder if making it relative to threads is > worthwhile the level of indirection. We can just default it to twice > the size. But I leave it up to you. Maybe there's something I'm > missing. I wanted to explicitly set it to something in the defaul

Re: [Webware-devel] Magic number?

2007-03-23 Thread Chuck Esterbrook
On 3/23/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Chuck Esterbrook wrote: > > All sounds good except I wonder if making it relative to threads is > > worthwhile the level of indirection. We can just default it to twice > > the size. But I leave it up to you. Maybe there's something I'm >