Code:
root@SERVER [/etc]# strace -p 4590
Process 4590 attached - interrupt to quit
write(3, "\21\376\312\374<\0\353\6_\3=\374\315\371\320\374\326\4\304\6\326\376\355\371\335\375\220\1\251\1\350\1"..., 5190) = 5190
munmap(0xb7d28000, 65536) = 0
mmap2(NULL, 65536, PROT_READ, MAP_SHARED, 4, 0x100) = 0xb7d28000
write(3, "\7\21\10\243\t\262\r\n]\r\n\243\r\n{\r\n1\t\346\t\312\t\301\t\33\7\255\6f\6\5"..., 66124) = 20874
write(3, "\240\377\16\377`\0\216\1\23\0\234\377T\376\217\377z\0\306\0\240\377\212\376\354\3774\377\251\377\t\375"..., 45250) = -1 ETIMEDOUT (Connection timed out)
close(4) = 0
close(3) = 0
time(NULL) = 1212184431
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
send(2, "<94>May 30 17:53:51 pure-ftpd: ("..., 96, MSG_NOSIGNAL) = 96
setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0
time(NULL) = 1212184431
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
send(2, "<95>May 30 17:53:51 pure-ftpd: ("..., 122, MSG_NOSIGNAL) = 122
write(1, "450 Error during write to data c"..., 43) = 43
setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0
alarm(1800) = 85415
select(1, [0], NULL, NULL, {900, 0}) = 1 (in [0], left {900, 0})
read(0, "", 4112) = 0
time(NULL) = 1212184431
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
send(2, "<94>May 30 17:53:51 pure-ftpd: ("..., 87, MSG_NOSIGNAL) = 87
setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0
time(NULL) = 1212184431
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
send(2, "<95>May 30 17:53:51 pure-ftpd: ("..., 92, MSG_NOSIGNAL) = 92
write(1, "450 Logout.\r\n", 13) = 13
setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0
exit_group(0) = ?
Process 4590 detached
The lines highlighted in red are where the server stalled. The FTP client displayed "Connection closed by remote host." and the server hung at the red highlighted lines for 15 minutes before timing out.