rewrite of socket reading/writing
changed how reading buffering is performed
fixed request cancellation
some more samples (endurance & timeout)