int ret;
char *header_buf;
- if (listen_fd < 0 || !len)
- return;
-
list_for_each_entry_safe(dc, tmp, &clients, node) {
if (!dc->header_sent && current_chunk) {
size_t header_len;
dccp_shutdown_client(dc);
continue;
}
+ if (!len)
+ continue;
// PARA_DEBUG_LOG("writing %d bytes to fd %d\n", len, dc->fd);
ret = dccp_write(dc->fd, buf, len);
if (ret < 0) {