fix TLS handshake BUFFER_UNDERFLOW. and some Eclipse settings

Without the fix, the TLS handshake would fail half the time due to BUFFER_UNDERFLOW.

Now it works every time, when testing against wss://echo.websocket.org/

Also includes Eclipse settings for 3-space indentation, and ADT 22 compatibility (.classpath).