Team,
I just released version 0.0.3 which is all of our modifications in the
refactoring of the original code base, improved ssl support (though not yet
working), and some minor and major bug fixes.
I had never tried to use the library from a windows machine, until Sunday
while trying to record some scripts requiring Internet Explorer, and I found
the following issue:
When a windows client is using the proxy only a fragment of the response was
being returned, this was verified on both IE7 and Firefox. The cause was
that the socket().getSendBufferSize() was 8K, and that was all that was
actually being written to the client, even with a long sleep before the
socket close, so I tried increasing the size to something ridiculous and
that confirmed the size issue. The solution was to rewrite the entire
response write mechanism to loop through the available data and write it to
the socket with a 100ms sleep between iterations, writing only the send
buffer size at a time.
I got a little annoyed at this smaller than unix buffer size and decided to
setSendBufferSize( 32*1024 ), although the default linux size was 24k, this
seems to work in both worlds just fine. We may either paramterize this or
just see if anyone complains about us manhandling the send buffer size.
I'm glad to be knocking out these bugs, and I think we have put together one
hell of a useful library. I am going to try to keep up with revisions when
we fix more bugs, and hope to use the 0.1.0 revision as our first ssl test
revision, though I am not sure of everyone's schedule, I hope to hack on it
in the next two weeks.
Feel free to add junit tests and play with ssl at your convenience and thank
you for everything you guys have done on this project, it would still be
very ugly and half useful had it not been for Juan's extensive refactoring
and debugging, and don't think I didn't notice all the cleanup Alan did to
all my ugly ssl stuff ;)
I had to use this library again for some "real" work and it is much better
than the stuff I had in 0.0.1, great job guys!
Thanks, John
|