Retry connection in import-export daemon
authorMichael Hanselmann <hansmi@google.com>
Fri, 16 Apr 2010 12:20:36 +0000 (14:20 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 27 Apr 2010 14:22:18 +0000 (16:22 +0200)
commit043f2292e368c58b61e33bf5caaf03f70bfd8c56
treeec43f41c52844c6c459aedc1864c6fe8f820bb2d
parent29da446a1cbefddfc78c6256e2b1b932cdd20b0d
Retry connection in import-export daemon

Until now, exactly one attempt was made to establish a connection.
If it failed, the whole import/export for the disk in question
aborted. Retrying will make it more reliable.

Unfortunately the listening part can't be made completely
resiliant against DoS attacks without larger and complex changes
to the daemon and using socat's EXEC: address combined with
forking.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
daemons/import-export
test/import-export_unittest.bash