is that a bug ?

I need to reconnect with server when the netword is shutdown and restart, but it does not reconnect as my think.
When I change BEV_OPT_CLOSE_ON_FREE to 0, I found it reconnect ok.
I dont know the details very much, But I doubt there is a bug ,
So I commit this and pull request about it , I wish someone can answer my question.