TCP KEEPALIVE support

Add tcp keeplaive support on platforms that support these socket options.
Set default to fail the socket after 120 seconds
This commit is contained in:
Ronnie Sahlberg
2011-04-13 21:35:51 +10:00
parent 120f41f225
commit b6782dd7c8
3 changed files with 54 additions and 1 deletions

View File

@@ -54,7 +54,11 @@ int iscsi_service(struct iscsi_context *iscsi, int revents);
*/
int iscsi_queue_length(struct iscsi_context *iscsi);
/*
* To set tcp keepalive for the session
* ONLY available on platforms with tcp keepalive socket options
*/
int iscsi_set_tcp_keepalive(struct iscsi_context *iscsi, int idle, int count, int interval);