Bugfix: read_tcp treated a succesfull connection as failed and vice versa