mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
tweak
svn:r6795
This commit is contained in:
parent
8930468582
commit
97a14b2018
@ -640,8 +640,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
|
|||||||
memset(addrbuf, 0, sizeof(addrbuf));
|
memset(addrbuf, 0, sizeof(addrbuf));
|
||||||
|
|
||||||
news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen);
|
news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen);
|
||||||
if (news < 0) {
|
if (news < 0) { /* accept() error */
|
||||||
/* accept() error */
|
|
||||||
int e = tor_socket_errno(conn->s);
|
int e = tor_socket_errno(conn->s);
|
||||||
if (ERRNO_IS_ACCEPT_EAGAIN(e)) {
|
if (ERRNO_IS_ACCEPT_EAGAIN(e)) {
|
||||||
return 0; /* he hung up before we could accept(). that's fine. */
|
return 0; /* he hung up before we could accept(). that's fine. */
|
||||||
|
Loading…
Reference in New Issue
Block a user