Closed alex-strizhakov closed 4 years ago
Makes sense, Transport:sockname/1
isn't guaranteed to succeed, for example if the socket is not connected. In that case it should act like undefined
I think, meaning the ip/port would not be included in the info (we don't have them anyway).
https://github.com/ninenines/gun/blob/74ac4d209c86f64059b1eaa0e541eb7d26dd23a8/src/gun.erl#L434
Sounds good
I will do this change and prepare a new pre-release on Wednesday.
Done locally, push soon. Thanks!
Hey! Sometimes in logs i see
MatchError
for:gun.info/1
calls.Gun is used from master branch and
:gun.info/1
is called after:gun_up
message. Not quite sure what is causing this.