Re: Performance related queries for SSL based client server model

2014-09-09 Thread Alok Sharma
Hi,    Thanks all for your update. But functionality wise it is working fine. I can remove the inner loop but that will require packet size to be of 1K. I tried with that also but did not find any improvement in performance. In my setup there are 8 routers between source destination. Can anyone

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Alok Sharma
Hi, I am trying with simple client server model where it is reading datat from a file and calling SSL_write and similar thing is happening on other end i.e. reading from SSL using SSL_read and writing to file. Itis taking 40 mins of time to copy file of size 600 MB and if I run a non-ssl

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 11:16:46PM +0530, Alok Sharma wrote: while ( (n = read(fd, recvBuff, sizeof(recvBuff)-1)) 0) { recvBuff[n] = 0; mode=n; i=0; while(mode0) { len=SSL_write(ssl, recvBuff, mode);

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Iñaki Baz Castillo
2014-09-08 19:46 GMT+02:00 Alok Sharma alokonm...@gmail.com: One thing I observerd by looking into scp code that it does not use SSL provided APIs (i.e.SSL_Read or SSL_Write) but they use it differenly i.e. might be directly calling encryption APIs and writing data to sockets. But I don't have

Performance related queries for SSL based client server model

2014-09-07 Thread Alok Sharma
Hi, I am writing one sample ssl based client server model which uses SSL_Read SSL_Write API provided by openssl. But I found that my application is very slow it takes around 40 mins to copy 700MB file. While same file using scp finishes in 10 mins. So my query is that is there an

RE: Performance related queries for SSL based client server model

2014-09-07 Thread Dave Thompson
-openssl-...@openssl.org [mailto:owner-openssl-...@openssl.org] On Behalf Of Alok Sharma Sent: Sunday, September 07, 2014 03:30 To: openssl-...@openssl.org; openssl-users@openssl.org Subject: Performance related queries for SSL based client server model Hi, I am writing one sample ssl based

Re: Performance related queries for SSL based client server model

2014-09-07 Thread Viktor Dukhovni
On Sun, Sep 07, 2014 at 01:00:17PM +0530, Alok Sharma wrote: I am writing one sample ssl based client server model which uses SSL_Read SSL_Write API provided by openssl. If you transfering each block of data as an RPC, with a round-trip acknowledgement before sending the next block, and