git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2505
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
DEBUG1("Prepare to send a message to %s",
MSG_host_get_name (sock_data->to_host));
DEBUG1("Prepare to send a message to %s",
MSG_host_get_name (sock_data->to_host));
- if (MSG_task_put(task, sock_data->to_host,sock_data->to_chan) != MSG_OK)
- THROW0(system_error,0,"Problem during the MSG_task_put");
+ if (MSG_task_put_with_timeout(task, sock_data->to_host,sock_data->to_chan,60.0) != MSG_OK)
+ THROW0(system_error,0,"Problem during the MSG_task_put with timeout 60");
VERB5("Sent to %s(%d) a message type '%s' kind '%s' ID %lu",
MSG_host_get_name(sock_data->to_host),sock_data->to_PID,
VERB5("Sent to %s(%d) a message type '%s' kind '%s' ID %lu",
MSG_host_get_name(sock_data->to_host),sock_data->to_PID,
DEBUG5("send chunk %s from %s to %s:%d (size=%ld)",
name, MSG_host_get_name(MSG_host_self()),
MSG_host_get_name(sock_data->to_host), sock_data->to_chan,size);
DEBUG5("send chunk %s from %s to %s:%d (size=%ld)",
name, MSG_host_get_name(MSG_host_self()),
MSG_host_get_name(sock_data->to_host), sock_data->to_chan,size);
- if (MSG_task_put(task, sock_data->to_host,sock_data->to_chan) != MSG_OK) {
- THROW0(system_error,0,"Problem during the MSG_task_put");
+ if (MSG_task_put_with_timeout(task, sock_data->to_host,sock_data->to_chan,60.0) != MSG_OK) {
+ THROW0(system_error,0,"Problem during the MSG_task_put with timeout 60");