Skip to content

Commit 7f626c9

Browse files
Jason Altbbockelm
authored andcommitted
Fix for zero length transfers
1 parent adfc14c commit 7f626c9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/gridftp_hdfs_send.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ hdfs_send(
168168

169169
hdfs_dispatch_read(hdfs_handle);
170170

171+
// Handle zero length transfers
172+
if (is_done(hdfs_handle) && hdfs_handle->outstanding == 0)
173+
{
174+
rc = close_and_clean(hdfs_handle, GLOBUS_SUCCESS);
175+
globus_gridftp_server_finished_transfer(op, rc);
176+
}
177+
171178
cleanup:
172179

173180
if (rc != GLOBUS_SUCCESS) {

0 commit comments

Comments
 (0)