diff options
author | Jesse Fang <boycht@gmail.com> | 2018-02-23 19:15:12 +0800 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2018-04-24 02:05:30 +0300 |
commit | f7bc1337977553f5f966f13840a5f7feba2d0bd5 (patch) | |
tree | fa5abbc21ca7ca7bd6c1d7e487584562755fea5a /bufferevent-internal.h | |
parent | 623ef3ccdc0aafac7ae77a723cbad6d552ff9a01 (diff) | |
download | libevent-f7bc1337977553f5f966f13840a5f7feba2d0bd5.tar.gz |
bufferevent_socket_connect{,_hostname}() missing event callback and use ret code
- When socket() failed in bufferevent_socket_connect() , the event
callback should be called also in
bufferevent_socket_connect_hostname(). eg. when use
bufferevent_socket_connect_hostname() to resolve and connect an IP
address but process have a smaller ulimit open files, socket() fails
always but caller is not notified.
- Make bufferevent_socket_connect()'s behavior more consistent: function
return error then no callback, function return ok then error passed by
event callback.
Fixes: #597
Closes: #599
Closes: #600
Diffstat (limited to 'bufferevent-internal.h')
0 files changed, 0 insertions, 0 deletions