hack to better support non-blocking ssl for https clients