mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
when event_add or event_del fail, tell us why.
(nick, do i have my libevent strerror dance moves correct?) svn:r5462
This commit is contained in:
parent
97f748f680
commit
f94f4c1686
@ -261,8 +261,9 @@ connection_watch_events(connection_t *conn, short events)
|
||||
|
||||
if (r<0)
|
||||
warn(LD_NET,
|
||||
"Error from libevent setting read event state for %d to %swatched.",
|
||||
conn->s, (events & EV_READ)?"":"un");
|
||||
"Error from libevent setting read event state for %d to %swatched: %s",
|
||||
conn->s, (events & EV_READ)?"":"un",
|
||||
tor_socket_strerror(tor_socket_errno(conn->s)));
|
||||
|
||||
if (events & EV_WRITE) {
|
||||
r = event_add(conn->write_event, NULL);
|
||||
@ -272,8 +273,9 @@ connection_watch_events(connection_t *conn, short events)
|
||||
|
||||
if (r<0)
|
||||
warn(LD_NET,
|
||||
"Error from libevent setting read event state for %d to %swatched.",
|
||||
conn->s, (events & EV_WRITE)?"":"un");
|
||||
"Error from libevent setting read event state for %d to %swatched: %s",
|
||||
conn->s, (events & EV_WRITE)?"":"un",
|
||||
tor_socket_strerror(tor_socket_errno(conn->s)));
|
||||
}
|
||||
|
||||
/** Return true iff <b>conn</b> is listening for read events. */
|
||||
|
Loading…
Reference in New Issue
Block a user