THRIFT-4984: Handle wrapped io.EOF errors
THRIFT-4984: Handle wrapped io.EOF errors

TCompactProtocol (which is used by THeaderTransport to read headers)
could wrap the underlying error with TProtocolException, which breaks
err == io.EOF test in some cases.

Client: go

This closes #1922.
bforbis/thrift,strava/thrift,bforbis/thrift,creker/thrift,jeking3/thrift,strava/thrift,Jens-G/thrift,nsuke/thrift,apache/thrift,RobberPhex/thrift,yongju-hong/thrift,Jens-G/thrift,bgould/thrift,apache/thrift,bgould/thrift,Jens-G/thrift,strava/thrift,apache/thrift,jeking3/thrift,yongju-hong/thrift,apache/thrift,strava/thrift,RobberPhex/thrift,Jens-G/thrift,Jens-G/thrift,Jens-G/thrift,yongju-hong/thrift,nsuke/thrift,yongju-hong/thrift,jeking3/thrift,dcelasun/thrift,RobberPhex/thrift,dcelasun/thrift,nsuke/thrift,bgould/thrift,creker/thrift,bforbis/thrift,nsuke/thrift,dcelasun/thrift,jeking3/thrift,yongju-hong/thrift,nsuke/thrift,strava/thrift,apache/thrift,bforbis/thrift,jeking3/thrift,apache/thrift,nsuke/thrift,dcelasun/thrift,nsuke/thrift,apache/thrift,dcelasun/thrift,bforbis/thrift,apache/thrift,yongju-hong/thrift,jeking3/thrift,RobberPhex/thrift,nsuke/thrift,jeking3/thrift,apache/thrift,RobberPhex/thrift,bgould/thrift,RobberPhex/thrift,bforbis/thrift,apache/thrift,bgould/thrift,strava/thrift,RobberPhex/thrift,RobberPhex/thrift,Jens-G/thrift,yongju-hong/thrift,bgould/thrift,Jens-G/thrift,strava/thrift,RobberPhex/thrift,yongju-hong/thrift,dcelasun/thrift,yongju-hong/thrift,jeking3/thrift,apache/thrift,bforbis/thrift,jeking3/thrift,dcelasun/thrift,jeking3/thrift,nsuke/thrift,yongju-hong/thrift,bgould/thrift,RobberPhex/thrift,nsuke/thrift,creker/thrift,RobberPhex/thrift,bforbis/thrift,RobberPhex/thrift,yongju-hong/thrift,bforbis/thrift,dcelasun/thrift,dcelasun/thrift,creker/thrift,Jens-G/thrift,dcelasun/thrift,creker/thrift,dcelasun/thrift,creker/thrift,dcelasun/thrift,creker/thrift,bforbis/thrift,bgould/thrift,apache/thrift,bforbis/thrift,bgould/thrift,bforbis/thrift,strava/thrift,Jens-G/thrift,bgould/thrift,bgould/thrift,bforbis/thrift,strava/thrift,yongju-hong/thrift,dcelasun/thrift,strava/thrift,dcelasun/thrift,nsuke/thrift,yongju-hong/thrift,creker/thrift,Jens-G/thrift,jeking3/thrift,yongju-hong/thrift,creker/thrift,apache/thrift,creker/thrift,bgould/thrift,dcelasun/thrift,bforbis/thrift,apache/thrift,nsuke/thrift,RobberPhex/thrift,strava/thrift,nsuke/thrift,apache/thrift,apache/thrift,apache/thrift,strava/thrift,Jens-G/thrift,bgould/thrift,jeking3/thrift,Jens-G/thrift,strava/thrift,creker/thrift,bforbis/thrift,jeking3/thrift,Jens-G/thrift,dcelasun/thrift,yongju-hong/thrift,yongju-hong/thrift,nsuke/thrift,RobberPhex/thrift,jeking3/thrift,bgould/thrift,RobberPhex/thrift,Jens-G/thrift,nsuke/thrift,bforbis/thrift,jeking3/thrift,nsuke/thrift,strava/thrift,creker/thrift,Jens-G/thrift,bgould/thrift,dcelasun/thrift,strava/thrift,creker/thrift,bforbis/thrift,creker/thrift,RobberPhex/thrift,yongju-hong/thrift,Jens-G/thrift,jeking3/thrift,nsuke/thrift,Jens-G/thrift,apache/thrift,RobberPhex/thrift,strava/thrift,strava/thrift