eventmachine/eventmachine — Issue #273: Incomplete transfers when using TLS with large data.
Author: Zapotek
Created: 2011-10-21 04:02:04+00:00
State: open

This issue has been discussed in details in this thread: http://groups.google.com/group/eventmachine/browse_thread/thread/6035227e4173e312/b3ce863874249575

Unfortunately, Aman hasn't been able to reproduce it and I can't move on with my development with the situation as it is right now.
This code causes it: https://gist.github.com/1303058

I'm on: Linux zonster 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 11.10

I've been able to reproduce it in a clean 11.04 Ubuntu installation as well.
The size of the data is a factor so try increasing the range of 'obj'.

If I remove ```start_tls``` the code works as expected, as it is right now the client will never print success because the buffer in the ObjectProtocol module will never get filled.

I'm posting this issue hoping that someone will be able to reproduce, investigate and hopefully fix it.

Regards,
Tasos L.