summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunbin Lee <hyunbin.lee@samsung.com>2013-11-19 14:41:52 +0900
committerHyunbin Lee <hyunbin.lee@samsung.com>2013-12-23 15:57:05 +0900
commit4ee5f77116ba97e8588a7c4c329ee427e9147068 (patch)
tree36fb1a3cf2074f23a394c65a8c378acb4fd4e2b2
parent75a78478a3490e04189649195c04f837316cf288 (diff)
downloadmessage-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.tar.gz
message-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.tar.bz2
message-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.zip
Change-Id: I92f74c1c9ef5e4492bca78144214989fac16ec1f Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
-rwxr-xr-xinclude/message-port.h1
-rw-r--r--src/MessagePortProxy.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/message-port.h b/include/message-port.h
index 6b194f9..aa10b99 100755
--- a/include/message-port.h
+++ b/include/message-port.h
@@ -45,6 +45,7 @@ typedef enum
MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND = -4, /**< The message port of the remote application is not found */
MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH = -5, /**< The remote application is not signed with the same certificate */
MESSAGEPORT_ERROR_MAX_EXCEEDED = -6, /**< The size of message has exceeded the maximum limit */
+ MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE = -7, /**< Resource temporarily unavailable */
} messageport_error_e;
diff --git a/src/MessagePortProxy.cpp b/src/MessagePortProxy.cpp
index 0ff878d..0f40e53 100644
--- a/src/MessagePortProxy.cpp
+++ b/src/MessagePortProxy.cpp
@@ -411,6 +411,12 @@ MessagePortProxy::SendMessageInternal(const BundleBuffer& metadata, const Bundle
return MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH;
}
+ else if (return_value == MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE)
+ {
+ _LOGE("The socket receiver buffer of remote port is temporarily full.");
+
+ return MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE;
+ }
else
{
_LOGE("Failed to check the remote messge port: %d.", return_value);