When APNs close a connection,
Net::APNs::Extended::Base::_read method returns "", then retrieve_error returns {"command":null,"identifier":null,"status":null} now.
So I think we should ignore "" at retrieve_error.
The supplement is below.
When APNs close a connection,
SSL_read returns 0, and
Net::SSLeay:::read returns 0, and
Net::SSLeay:::ssl_read_all returns "".
@xaicron
When APNs close a connection,
Net::APNs::Extended::Base::_read
method returns""
, thenretrieve_error
returns{"command":null,"identifier":null,"status":null}
now. So I think we should ignore""
at retrieve_error.The supplement is below. When APNs close a connection,
SSL_read
returns0
, andNet::SSLeay:::read
returns0
, andNet::SSLeay:::ssl_read_all
returns""
.Related: https://github.com/xaicron/p5-Net-APNs-Extended/issues/6