ssl socket read write intial