bugfix after tests
test environment. usage: start socket_test_s.py and then
socket_test_c.py