Skip to content

Commit edd222a

Browse files
committed
just discard the data instead of saving it.
write of 0 means something other than "we saved the data"
1 parent b1e1053 commit edd222a

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/lib/io/network.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,17 +1256,14 @@ static void fr_network_write(UNUSED fr_event_list_t *el, UNUSED int sockfd, UNUS
12561256
break;
12571257

12581258
/*
1259-
* These are temporary errors. We try to save the data for later.
1259+
* These are temporary errors. We just discard the data.
12601260
*/
12611261
case ENETDOWN:
12621262
case ENETUNREACH:
1263-
if (s->pending) {
1264-
fr_message_done(&cd->m);
1265-
return;
1266-
}
1263+
if (li->app_io->error) li->app_io->error(li);
12671264

1268-
s->written = 0;
1269-
goto save_pending;
1265+
fr_message_done(&cd->m);
1266+
return;
12701267

12711268
default:
12721269
if (li->app_io->error) li->app_io->error(li);

0 commit comments

Comments
 (0)