mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Fix EOM for SendFile
To terminate a connection of varlink, say after sending a file, we need to send a message containing a delimiter of ':' so the client knows to hang up. Fixes: #6237 Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -39,7 +39,7 @@ func (i *VarlinkAPI) SendFile(call iopodman.VarlinkCall, ftype string, length in
|
||||
|
||||
logrus.Debugf("successfully received %s", outputFile.Name())
|
||||
// Send an ACK to the client
|
||||
call.Call.Writer.WriteString(outputFile.Name())
|
||||
call.Call.Writer.WriteString(outputFile.Name() + ":")
|
||||
call.Call.Writer.Flush()
|
||||
return nil
|
||||
|
||||
|
Reference in New Issue
Block a user