OpenSSL newbie

2007-02-13 Thread Tommy W
Hi I'm about to develop a server application which should be able to handle ALOT of connections, say 20k-30k Any suggestions as to how I should tackle this problem? I am really new with OpenSSL and haven't really grasped it all yet. I've been searching the net for a couple of days now just to find

Re: OpenSSL newbie

2007-02-13 Thread Tommy W
> > I'm about to develop a server application which should be able to > > handle ALOT of connections, say 20k-30k > > Any suggestions as to how I should tackle this problem? > > It takes a lot of experience to develop a system that can handle more than > 10,000 simultaneous connections. I don't thi

Re: OpenSSL newbie

2007-02-16 Thread Tommy W
> Yes, 'epoll' is the most efficient mechanism on Linux. I recommend using > level-triggered events because it's simpler. That's the opposite as to what I have done. :) From what I have read I gathered that Event Triggered is MUCH faster. But I guess I could have gotten it all wrong. > More gener

Segfault inside BIO_ctrl

2007-03-19 Thread Tommy W
#0 0x08081361 in BIO_ctrl () #1 0x0815fac0 in ?? () #2 0x08051a88 in ?? () #3 0xbf9a4e98 in ?? () #4 0x0805ad6e in SSLwrapper::ProcessBuffers (this=0xb7fdb480, [EMAIL PROTECTED], read=false, write=false) at SSLwrapper.cpp:34 Previous frame inner to this frame (corrupt stack?) I get that when

Re: Segfault inside BIO_ctrl

2007-03-20 Thread Tommy W
> #0 0x08081361 in BIO_ctrl () > #1 0x0815fac0 in ?? () > #2 0x08051a88 in ?? () > #3 0xbf9a4e98 in ?? () > #4 0x0805ad6e in SSLwrapper::ProcessBuffers (this=0xb7fdb480, > [EMAIL PROTECTED], read=false, write=false) at SSLwrapper.cpp:34 > Previous frame inner to this frame (corrupt stack?) > >

Really confusing with SSL_write

2007-03-29 Thread Tommy W
Hi, I've been trying to figure out (plus testing) how to actually use SSL_write. I write alot of data and have an internal Send Queue in which I keep "packets". I try to follow this reasoning: 1) try to write the entire chunk with SSL_write if it returns the same value as 'len' then it su

Re: Really confusing with SSL_write

2007-03-30 Thread Tommy W
>Hi, > > > I've been trying to figure out (plus testing) how to actually > > use SSL_write. > > Call SSL_write with the same parameters until it succeeds. You need > to handle WANT_READ and WANT_WRITE return values. I guess that is clear enough. but does that imply if I call SSL_write(ssl, buffe

Re: Really confusing with SSL_write

2007-03-30 Thread Tommy W
On Friday 30 March 2007 22:41, David Schwartz wrote: > > > Call SSL_write with the same parameters until it succeeds. You need > > > to handle WANT_READ and WANT_WRITE return values. > > > > I guess that is clear enough. > > but does that imply if I call > > SSL_write(ssl, buffer, len), > > it wil

Re: Really confusing with SSL_write

2007-03-31 Thread Tommy W
On Saturday 31 March 2007 00:26, David Schwartz wrote: > > I see, so if I disable PARTIAL_WRITES, will that mean that it will return > > values as I wrote up there? > > PARTIAL_WRITES has no effect on the meaning of the return value. It just > controls whether or not the internal write logic tries

Re: Really confusing with SSL_write

2007-03-31 Thread Tommy W
On Saturday 31 March 2007 13:30, David Schwartz wrote: > > It's just this I'm having a hard trouble to grasp. > > Normally with say 'write' I would do > > > > // pseudo code > > while(written < len) > >written += write(fd, my_packet + written, len - written); > > > > But because SSL_write handl