Skip to content

Commit

Permalink
allow empty logfile
Browse files Browse the repository at this point in the history
with the previous code, if a logfile is empty the clients complains with    
`Failed to fetch file from logserver [server name]@[port] Error: The remote host closed the connection`
the added syswrite makes the client happy
  • Loading branch information
charlienegri authored Jul 25, 2024
1 parent 3ded3ec commit 39041bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ecflow_logsvr.pl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ sub do_get {
{
syswrite($client,$buf,$size);
}

syswrite($client,"end of output");
close(IN);
}

Expand Down

0 comments on commit 39041bc

Please sign in to comment.