Re: Connection Resetting

2010-09-01 Thread Sam Jantz
A little more about how my proxy works, My proxy behaves like number two in the previous email. It is purely a bidirectional proxy with no clear tracking of the protocol. With the only exception being it reads the entire (unencrypted) Connect request from the client, and then goes and

RE: Connection Resetting

2010-09-01 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Sam Jantz Sent: Wednesday, 01 September, 2010 12:25 My proxy behaves like number two in the previous email. It is purely a bidirectional proxy with no clear tracking of the protocol [after CONNECT] It's multi

RE: Connection Resetting

2010-09-01 Thread David Schwartz
Sam Jantz wrote: It's multi threaded with non-blocking I/O.  I'm not sure exactly what you mean by socket discovery, but I think you are asking how my program determines when something is ready?  If that's the case then my program uses a select statement to watch the file descriptor to see

Re: Connection Resetting

2010-08-31 Thread Sam Jantz
Okay so the fix for the bug that I mentioned before introduced a much worse bug (That's what I get for not knowing exactly what is going on). This new bug causes the system to keep all threads alive for the length of the proxy so with enough sites visited the computer the proxy is running on

RE: Connection Resetting

2010-08-31 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Sam Jantz Sent: Monday, 30 August, 2010 13:50 I have just now fixed the bug. The source of the problem was an SSL_read call on the client half of the proxy. This was triggering This is ambiguous; do you mean the

RE: Connection Resetting

2010-08-31 Thread David Schwartz
I'm writing a SSL proxy (which is working great except for this issue) and every time I got to attach a file in an email the connection resets, and it gets caught in an infinite retransmit loop. There are two totally different ways you can make an SSL proxy, and to figure out your issue, we

Re: Connection Resetting

2010-08-30 Thread Sam Jantz
Dave, Thank you for the clarification on HTTP keep-alives. I have just now fixed the bug. The source of the problem was an SSL_read call on the client half of the proxy. This was triggering an error SSL_ERROR_SYSCALL with a ret of zero. According to the documentation this is normally

RE: Connection Resetting

2010-08-29 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Sam Jantz Sent: Friday, 27 August, 2010 18:16 I have a question concerning Keep-Alives. I'm writing a SSL proxy (which is working great except for this issue) and every time I [POST about 470KB rather than about