Properly use SocketOptions in Stress example

JAVA-214 #fixes
Merge branch '1.0' into 2.0