Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-lib] Limit receive task timeout by 10 minutes
  • Loading branch information
monich committed Apr 29, 2014
1 parent 3c82ecf commit a5add7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mms-lib/src/mms_task_notification.c
Expand Up @@ -307,9 +307,6 @@ mms_task_notification_new(
config, handler, "Notification", NULL, imsi);
ind->push = g_bytes_ref(bytes);
ind->pdu = pdu;
if (pdu->type == MMS_MESSAGE_TYPE_NOTIFICATION_IND) {
ind->task.deadline = pdu->ni.expiry;
}
return &ind->task;
} else {
MMS_ERROR(error, MMS_LIB_ERROR_DECODE, "Failed to decode MMS PDU");
Expand Down
4 changes: 3 additions & 1 deletion mms-lib/src/mms_task_retrieve.c
Expand Up @@ -129,7 +129,9 @@ mms_task_retrieve_new(
MMSTaskRetrieve* retrieve = mms_task_http_alloc(
MMS_TYPE_TASK_RETRIEVE, config, handler, "Retrieve", id, imsi,
pdu->ni.location, MMS_RETRIEVE_CONF_FILE, NULL);
retrieve->http.task.deadline = pdu->ni.expiry;
if (retrieve->http.task.deadline > pdu->ni.expiry) {
retrieve->http.task.deadline = pdu->ni.expiry;
}
retrieve->transaction_id = g_strdup(pdu->transaction_id);
return &retrieve->http.task;
} else {
Expand Down

0 comments on commit a5add7e

Please sign in to comment.