Hwankyu Jhun [Thu, 26 Sep 2024 23:19:28 +0000 (08:19 +0900)]
Release version 1.18.10
Changes:
- Fix a timing issue related to disconnected event
Change-Id: I6836c18180d00f9523eebedf6cc89d637abd9d06
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 26 Sep 2024 11:37:49 +0000 (20:37 +0900)]
Fix a timing issue related to disconnected event
The port instance should be released after calling the disconnected
event callback.
Change-Id: I8b4e07918702bdbacc612a37978fcba9faf819b0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 25 Sep 2024 00:58:51 +0000 (09:58 +0900)]
Release version 1.18.9
Changes:
- Apply to prevent stripping .rustc section symbols
Change-Id: Iec3a9519564f8a1369898da9871b4812c4e82481
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 24 Sep 2024 04:02:38 +0000 (13:02 +0900)]
Apply to prevent stripping .rustc section symbols
In some environments, the current approach needs to be changed because the %check step is not executed.
Change-Id: Ia3dbd47b989fe57d37f14ceb23006f0d084ff35e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jusung son [Tue, 24 Sep 2024 00:24:25 +0000 (09:24 +0900)]
Release version 1.18.8
Changes:
- Implement rust-rpc-port
- Add extension
Change-Id: Ie37d0a0bf65dc76907083eb0593a52de61857971
Signed-off-by: jusung son <jusung07.son@samsung.com>
dongkwan [Wed, 11 Sep 2024 05:44:54 +0000 (14:44 +0900)]
Add extension
add codes for rust -e(extension) option.
- extern rpc_port_get_peer_info
- extern rpc_port_stub_has_pending_request
- has_pending_pending rust style wrap up function
- get_peer_info rust style wrap up function
- few unit tests code
Change-Id: I8af83b5c1642ef4c47421b3ad2db33c5c6d80c28
Signed-off-by: dongkwan <dk3776.kim@samsung.com>
Changgyu Choi [Tue, 3 Sep 2024 09:05:26 +0000 (18:05 +0900)]
Implement rust-rpc-port
rust-rpc-port has been added.
Change-Id: I33b5f2ff1f8ac7ff8eae244a282286843956b2e3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jusung son [Tue, 10 Sep 2024 04:11:34 +0000 (13:11 +0900)]
Release version 1.18.7
Changes:
- Fix memory leak
Change-Id: I734e3a0cef20ddb2e93e01e3a37c7123d2dfa147
Signed-off-by: jusung son <jusung07.son@samsung.com>
jusung son [Tue, 10 Sep 2024 03:55:11 +0000 (12:55 +0900)]
Fix memory leak
Change-Id: I85a3130cbb53d8eaa94010042b3bfb818c3111da
Signed-off-by: jusung son <jusung07.son@samsung.com>
jusung son [Tue, 10 Sep 2024 00:57:51 +0000 (09:57 +0900)]
Release version 1.18.6
Changes:
- Add internal parcel APIs
Change-Id: I493fdb8f01dfd1b3dbe978737602f01472866896
Signed-off-by: jusung son <jusung07.son@samsung.com>
jh9216.park [Wed, 28 Aug 2024 03:05:36 +0000 (23:05 -0400)]
Add internal parcel APIs
Change-Id: I0d7daaaddb7876126d4043fba074c149f58d0aa5
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Hwankyu Jhun [Wed, 28 Aug 2024 04:48:16 +0000 (13:48 +0900)]
Release version 1.18.5
Changes:
- Use bundle_encode_raw in rpc-port-parcel
Change-Id: If11d85d361dfb474e31c1817d7d32f78b60c7f3d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
jh9216.park [Thu, 22 Aug 2024 02:23:48 +0000 (22:23 -0400)]
Use bundle_encode_raw in rpc-port-parcel
- bundle_encode_raw does not use Base64 encoder
- It it faster then bundle_encode
- Requires
https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/316457/
Change-Id: Ie9b20b43b795064c129e865683ae58a0a691a881
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 13 Aug 2024 08:05:45 +0000 (17:05 +0900)]
Release version 1.18.4
Changes:
- Modify implementation related to sync function
- Fix GetAppId() method
Change-Id: Id8969efaf1044aab34848f29c1aabd366649a908
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 13 Aug 2024 06:11:19 +0000 (15:11 +0900)]
Fix GetAppId() method
If the caller process ID is equal to the target process ID, the rpc-port
should check whether the user ID is less than the regular user ID or not.
Change-Id: Id60fc954986e871a9d7038b3253bbf212ab30b2f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 13 Aug 2024 04:15:36 +0000 (13:15 +0900)]
Release version 1.18.3
Changes:
- Modify implementation related to sync function
Change-Id: I7a52d4adb52f441284945db5a792c45b02b830a2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 12 Aug 2024 21:55:06 +0000 (06:55 +0900)]
Modify implementation related to sync function
- Change retrying count to 250.
- Check whether the stub is system daemon or not
- Fix a bug about delegate invocation
Change-Id: I49b36eb990957dabaa29d462b74e6c32df501c93
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 9 Aug 2024 10:57:45 +0000 (19:57 +0900)]
Release version 1.18.2
Changes:
- Modify doc
- Fix thread safe issue
Change-Id: I34040fee88ac745b5957166ff9e2beb392d69dc1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 9 Aug 2024 10:16:12 +0000 (19:16 +0900)]
Fix thread safe issue
If the process tries to release the GSource when calling the idle callback,
it can make the crash issue as below:
+------------------------------------------------------------------------------+
| #0 0xb5a9201a in g_source_remove_child_source (source=<optimized out>, |
| child_source=<optimized out>) at /usr/src/debug/glib2-2.78.4- |
| 0.arm/_build/../glib/gmain.c:1725 |
| #1 0xb5a92108 in g_source_destroy (source=<optimized out>) at /usr/src/debug|
| /glib2-2.78.4-0.arm/_build/../glib/gmain.c:1477 |
+------------------------------------------------------------------------------+
This patch adds locking & unlocking the mutex to prevent the issue.
Change-Id: I0ab3b60bd8bfee41b92c5a33c6c5cf3c269c3931
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 8 Aug 2024 04:23:04 +0000 (13:23 +0900)]
Modify doc
The module header name must be "CAPI_RPC_PORT_PARCEL_MODULE_HEADER".
Change-Id: Ifa82cd6292daebe13561f59f06691a47a7651282
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 8 Aug 2024 00:13:16 +0000 (09:13 +0900)]
Release version 1.18.1
Changes:
- Remove unnecessary logs
- Fix crash issues of servers
Change-Id: Id35de7c8622593d210a9cb9847dc0efe89968203
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 8 Aug 2024 00:06:18 +0000 (09:06 +0900)]
Fix crash issues of servers
While calling RemoveAcceptedPorts(), the server has crashed.
Because the instance argument is deleted at the for loop.
This patch changes the parameter type to std::string.
Change-Id: Ib7754d128df647b75643baf34d4eca3e62264fd1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 6 Aug 2024 03:12:09 +0000 (12:12 +0900)]
Remove unnecessary logs
The ctor and dtor logs are not needed.
Change-Id: I3771bf2b5462944d1a8b159be8a07e8fa8feb960
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 2 Aug 2024 06:34:59 +0000 (15:34 +0900)]
Release version 1.18.0
Changes:
- Modify Port implementation
- Increase timeout of rpc-port
- Refactor DebugPort implementation
- Add a missing timeout setting
- Add a new internal class for using glib
Change-Id: Idaec03a4e6e31106ad34ef1accdd804c98bd5c98
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 2 Aug 2024 05:58:59 +0000 (14:58 +0900)]
Add a new internal class for using glib
The following methods are added:
- GLib::IdleAdd()
- GLib::TimeoutAdd()
- GLib::UnixFdAdd()
- GLib::SourceDestroy()
Change-Id: If9f0231b2fcf959cd1469a34a6cf54cc75977bf6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 2 Aug 2024 06:12:50 +0000 (15:12 +0900)]
Add a missing timeout setting
The receive timeout of the client should be set.
Change-Id: I1b90f927ca230ede6641f7afb79c16075a832490
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 1 Aug 2024 23:30:18 +0000 (08:30 +0900)]
Refactor DebugPort implementation
The parameters of AddSession() method ars changed.
Change-Id: Ib75c008d6fd9f63bb673c68b6be9488ca9b83821
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 1 Aug 2024 09:40:54 +0000 (18:40 +0900)]
Increase timeout of rpc-port
The default timeout is increased to 25 seconds.
The following functions are added internally:
- rpc_port_set_timeout()
- rpc_port_get_timeout()
Change-Id: I6ae46d956c30e33606a74cd312a1b37ac67c2b02
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 1 Aug 2024 01:10:55 +0000 (10:10 +0900)]
Modify Port implementation
This patch separates the fd for use respectively for read & write purposes.
Change-Id: I35e51f6af0e91b0f830901a67dd815c01b1d3645
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 31 Jul 2024 22:57:36 +0000 (07:57 +0900)]
Release version 1.17.3
Changes:
- Separate internal classes
- Throw exception when getting EMFILE errno
- Modify Port class
- Add a missing implementation
- Modify ClientSocket implementation
- Fix build error
Change-Id: Idec9d29040fe45c44f8a64542c46a81010cfa054
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 31 Jul 2024 22:34:50 +0000 (07:34 +0900)]
Fix build error
The log format should be %zu to print size_t type.
Change-Id: Icb6e639c152a46bfe3430a63889ee4daf9445892
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 31 Jul 2024 05:40:54 +0000 (14:40 +0900)]
Release version 1.17.2
Changes:
- Separate internal classes
- Throw exception when getting EMFILE errno
- Modify Port class
- Add a missing implementation
- Modify ClientSocket implementation
Change-Id: I76be7a472bdc970cc9fe3d1fdb9915ea14c67783
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 31 Jul 2024 01:43:15 +0000 (10:43 +0900)]
Modify ClientSocket implementation
- Adds Send() and Receive() methods for sending the parcelable instance
- Uses recv() instead of read()
- Adds exception handlings about EAGAIN error
- Adds the retrying count for error handling
Change-Id: I41dd952d6fa90500a30f0193f0e8fe747675b462
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 31 Jul 2024 05:13:56 +0000 (14:13 +0900)]
Add a missing implementation
When creating the gsource is failed, the function must be returned.
Change-Id: Id0de49f9d93aa3afad8f9fa311719cc802179574
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Jul 2024 04:19:32 +0000 (13:19 +0900)]
Modify Port class
The DelayedMessage class is separated from the Port class.
Using GIOChannel is removed. After this patch is applied, the port uses GSource
instead of GIOChannel.(g_unix_fd_source_new() is used).
Change-Id: I9edba1b5d8f305c951d7908abcd2c787279ae54b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Jul 2024 00:21:27 +0000 (09:21 +0900)]
Throw exception when getting EMFILE errno
When the process cannot open a new file descriptior, the rpc-port
library throws an exception to create coredump file.
Change-Id: I5b9ebe83342cfca4511d4329676b67365d374e5d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Jul 2024 04:39:10 +0000 (13:39 +0900)]
Separate internal classes
The AcceptedPort and Server classes are separated from the Stub class.
The ProxyPort and ClientChannel classes are sperated from the Proxy class.
Change-Id: Ibce6a686a901a5748dacb81a013e06bd9d2184f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jul 2024 03:53:49 +0000 (12:53 +0900)]
Release version 1.17.1
Changes:
- Fix a bug about registering main port
Change-Id: Ic3304a1735d64e69b372f2f0f3be6d1fb76951e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jul 2024 03:33:32 +0000 (12:33 +0900)]
Fix a bug about registering main port
The main port should not register G_IO_IN event handler.
Change-Id: I123bdada062da4b7646c615fd72c20ce93c6c56d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 12 Jul 2024 04:02:28 +0000 (13:02 +0900)]
Release version 1.17.0
Changes:
- Use thread default context
Change-Id: I0b42f944fe0c2a1d0365ccc63b6867866d762cf5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 27 Jun 2024 01:41:35 +0000 (10:41 +0900)]
Use thread default context
To deliver events to the registered thread loop, this patch uses a
thread default context instead of a default main context.
Change-Id: I7827fd1af7ea942f0de0ae4cfc6b7f022f45d8f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 12 Jun 2024 01:12:53 +0000 (10:12 +0900)]
Release version 1.16.0
Changes:
- Add a new internal API
Change-Id: Ic5c2f09ee6d27ce86f3703e8c19edc348f287c56
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 11 Jun 2024 00:16:06 +0000 (09:16 +0900)]
Add a new internal API
To check whether the pending request exists or not, the function is added.
Adds:
- rpc_port_stub_has_pending_request()
Change-Id: I8d3af304b5e1cce19b5956ff45ee92b7806ac69c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 10 Jun 2024 23:56:14 +0000 (08:56 +0900)]
Release version 1.15.9
Changes:
- Dispose cynara thread
Change-Id: Iadc9fd8c945efe099b6909b7162b982b79a4fef9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 10 Jun 2024 23:01:17 +0000 (08:01 +0900)]
Dispose cynara thread
When terminating the process, the cynara thread of the rpc-port must be
released.
Change-Id: Ic10e37bf54fe26f7ef4a526ef01f27b394a0e13c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 3 Jun 2024 04:25:22 +0000 (13:25 +0900)]
Release version 1.15.8
Changes:
- Fix wrong setting LD_LIBRARY_PATH
- Merge "Change interface name in .proto file" into tizen
Change-Id: I1296a4dabf12c116758a594033444c89b1d18333
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Mon, 3 Jun 2024 03:43:53 +0000 (03:43 +0000)]
Merge "Change interface name in .proto file" into tizen
Changgyu Choi [Wed, 8 May 2024 04:19:29 +0000 (13:19 +0900)]
Fix wrong setting LD_LIBRARY_PATH
rpc-port source path was changed to "src/rpc-port"
Change-Id: Id3a8b7807f29f3261186df162b0971fdcfe4f9b0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 1 May 2024 23:49:33 +0000 (08:49 +0900)]
Release version 1.15.7
Changes:
- Modify directory hierarchy
Change-Id: I54dbfdae653b9855e0aae8242b45e0b017a65d74
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 30 Apr 2024 09:02:01 +0000 (18:02 +0900)]
Modify directory hierarchy
The rpc-port sources have been moved to 'src/rpc-port'.
src/
+ src/rpc-port
Change-Id: I93ab201047ba4bfa424baaf2c80bc5dd6cd53e59
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jh9216.park [Mon, 15 Apr 2024 04:46:00 +0000 (00:46 -0400)]
Change interface name in .proto file
Change-Id: Icac22f7764d58c354d7c83cc1a0c4870fbe4a5b3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Ilho Kim [Fri, 19 Apr 2024 05:25:24 +0000 (14:25 +0900)]
Release version 1.15.6
Changes:
- Fix Receive
Change-Id: I3bb40140f9f5322158dba454ba857312dccb8903
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 19 Apr 2024 05:14:36 +0000 (14:14 +0900)]
Fix Receive
After returning the EINTR in the first read, even if the read is successful
it regarded as the EINTR case and continue loop
Change-Id: Ia7cfa4cf60c7131b63d5a782ebf5e2b719e3c6c5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Mon, 15 Apr 2024 04:47:51 +0000 (13:47 +0900)]
Release version 1.15.5
Changes:
- Add logs for debugging
Change-Id: Ia367311c94f443848293960422dc0c6691741dee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 15 Apr 2024 03:27:46 +0000 (12:27 +0900)]
Add logs for debugging
To check cynara check time, this patch adds logs.
Change-Id: I56e87942f0f984ab77635c3f5ce97c4fa306734c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Apr 2024 10:36:51 +0000 (19:36 +0900)]
Release version 1.15.4
Changes:
- Handle EINTR error
Change-Id: I619e89c705e4b4114af460ba74e100b8ac12ccb3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Apr 2024 10:19:47 +0000 (19:19 +0900)]
Handle EINTR error
Currently, the socket mode is blocking. We should handle EINTR error to
receive the data properly.
Change-Id: I3d3687658a0d2f2349e22bfc5494cdea502123f8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Apr 2024 02:12:47 +0000 (11:12 +0900)]
Release version 1.15.3
Changes:
- Fix wrong condition of if statement
- Increase timeout of recv() of client socket
Change-Id: If821b9813c4d95a204823cc8e2a63c5b49c1cdac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Apr 2024 01:55:15 +0000 (10:55 +0900)]
Increase timeout of recv() of client socket
This patch increases recv() timeout to 10 seconds from 5 seconds.
Change-Id: I3bfbd30e8646457c9a6da34dc79f1ec43951da09
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Apr 2024 01:41:06 +0000 (10:41 +0900)]
Fix wrong condition of if statement
The condition of the if statement must be '!port_path_.empty()'.
Change-Id: Ic18f6cf743f2c94267462d0a2c5b61c577d63588
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Apr 2024 09:04:11 +0000 (18:04 +0900)]
Release version 1.15.2
Changes:
- Fix crash issue related to delete this
Change-Id: Id7404c31faddfa7b6038564191cc40e86ce7813f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Apr 2024 08:22:39 +0000 (17:22 +0900)]
Fix crash issue related to delete this
While calling OnFileCreated(), we should not release the FileMonitor
instance. If it's deleted, it causes the crash issue.
Change-Id: I203db1fec079f705d3f6008944f0c8f3848cb04d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Apr 2024 00:22:04 +0000 (09:22 +0900)]
Release version 1.15.1
Changes:
- Separate benchmark tool from rpc-port
- Remove duplicated code
- Delete port path
Change-Id: I202d269259f180f16506f80d576b69f08c02a4d8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Apr 2024 00:03:07 +0000 (09:03 +0900)]
Delete port path
While calling a destructor of Stub, the port path should be deleted
if the caller is a daemon or service.
Change-Id: I806d5f0aeafbcf8740dbd2d4ef52b0fa5408d4b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Apr 2024 23:29:44 +0000 (08:29 +0900)]
Remove duplicated code
Before entering the if statement code, calling SetNonblock() can be called.
Change-Id: I901e18226c8abb822acecfb2fd1e4e5057611286
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 3 Apr 2024 07:56:53 +0000 (16:56 +0900)]
Separate benchmark tool from rpc-port
The rpc-port-benchmark package is added.
The tools are moved to the package.
The following servies of systemd are added for socket & dbus activation:
- rpc-port-benchmark-server-tidl.service
- rpc-port-benchmark-server-tidl.socket
- rpc-port-benchmark-server-dbus.service
- tizen.appfw.rpcport.benchmark.dbus.busname
- tizen.appfw.rpcport.benchmark.dbus.service
- rpc-port-benchmark-client-tidl.service
- rpc-port-benchmark-client-dbus.service
Change-Id: I3d39ef2c6c452069ff0656b967cfe5b70f11a450
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 3 Apr 2024 09:40:54 +0000 (18:40 +0900)]
Release version 1.15.0
Changes:
- Allow dbus for root user
- Support benchmark tool for gRPC over UDS
- Support socket activation of systemd
Change-Id: Ie0bab45632d84b5ef711868353fc925693dde1ce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Apr 2024 05:55:44 +0000 (14:55 +0900)]
Support socket activation of systemd
This patch is for linux daemon and service.
The rpc-port creates the socket path without communication with amd if
the caller is a daemon or service. The process name must have "d::" prefix
as below:
e.g. "d::Benchmark"
After this is applied, the rpc-port supports socket activation of system.
The socket path of the daemon is "/run/aul/rpcport/.<proc_name>::<port_name>".
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/308786/
Change-Id: Ifdd411b2e8b9c745cb9c1cdd9e930df7ab628b9a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
jh9216.park [Fri, 29 Mar 2024 05:17:32 +0000 (01:17 -0400)]
Support benchmark tool for gRPC over UDS
Change-Id: Ifd57b6a407e4148c6517788fba6ee719a540dd04
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
jh9216.park [Fri, 29 Mar 2024 05:34:46 +0000 (01:34 -0400)]
Allow dbus for root user
Change-Id: I881ac9d89a6cbd3e3c0fb9702c358df33d986854
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Hwankyu Jhun [Fri, 29 Mar 2024 03:20:57 +0000 (12:20 +0900)]
Release version 1.14.23
Changes:
- Update benchmark tool for testing dbus
- Remove pkgmgr dependency
- Add deny own in default context
- Fix Port::Read() method
Change-Id: If91d0b8149a0365c54735f92ad1c6ec803c1537f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Mar 2024 11:58:36 +0000 (20:58 +0900)]
Fix Port::Read() method
While calling Read() method, the fd is changed to blocking mode.
Before returning the method, the fd is changed to nonblocking mode.
Change-Id: I251855505e90804ee08a0f129cf9b95f198decd7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ilho kim [Thu, 28 Mar 2024 19:53:56 +0000 (04:53 +0900)]
Add deny own in default context
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 28 Mar 2024 13:06:46 +0000 (22:06 +0900)]
Remove pkgmgr dependency
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
jh9216.park [Thu, 28 Mar 2024 01:47:12 +0000 (21:47 -0400)]
Update benchmark tool for testing dbus
Change-Id: I8c3179af8c3c6a6ea5e89a36592dc04bea894324
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Changgyu Choi [Tue, 12 Mar 2024 04:41:45 +0000 (13:41 +0900)]
Release version 1.14.22
Changes:
- Fix lcov option for lcov 2.0
Change-Id: I937ac8395e163d103e97091014b3f01c7e3989aa
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 12 Mar 2024 04:30:55 +0000 (13:30 +0900)]
Fix lcov option for lcov 2.0
"mismatch,graph,unused" options are added.
Change-Id: I266a891e728abf2d02b0ebc60b258f01fb5db849
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 5 Mar 2024 09:53:07 +0000 (18:53 +0900)]
Release version 1.14.21
Changes:
- Update benchmark codes
- Fix race condition
Change-Id: I92a6fa2fd573d12636f9622591a6da9eb2675029
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 5 Mar 2024 07:13:15 +0000 (16:13 +0900)]
Fix race condition
disposed_ flag must be checked after locking mutex.
Change-Id: I19839145d10d9c51486c4f49450cd4098b7b75d2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 5 Mar 2024 01:13:45 +0000 (10:13 +0900)]
Update benchmark codes
The codes are generated using tidl 2.0.4 version.
Change-Id: I528eaa594df3ba2eb0508222db5ad1ffaeeae4d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 5 Mar 2024 00:38:10 +0000 (09:38 +0900)]
Release version 1.14.20
Changes:
- Modify implementation of AccessController
Change-Id: I921e9242ef1bf045e3134b93f50ec209cff6ea7e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 4 Mar 2024 23:46:53 +0000 (08:46 +0900)]
Modify implementation of AccessController
After this patch is applied, the cyanra object is managed as an instance.
When checking the permission using cynara API, the cynara instance is used.
When the process is terminating, a crash issue occurs when the cynara-thread
calls the cynara_initialize(). The patch is to solve that.
Change-Id: I6b76645c5a43387a48bf996360680dfe87b6e90c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 16 Feb 2024 05:49:13 +0000 (14:49 +0900)]
Release version 1.14.19
Changes:
- Remove conditional statements for Moible/Wearable profile
Change-Id: I2497dfc3397053d0a291c495c1f1541398e27ff2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 16 Feb 2024 04:47:53 +0000 (13:47 +0900)]
Remove conditional statements for Moible/Wearable profile
Change-Id: I6b92bf26fb63ffe967416d62057d5ead1ef188b3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 30 Jan 2024 08:34:59 +0000 (17:34 +0900)]
Release version 1.14.18
Changes:
- Fix critical section range
Change-Id: If2693f68720d2570417fdc9cddba73e8d4a176bd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 29 Jan 2024 09:37:37 +0000 (18:37 +0900)]
Fix critical section range
lock should be get before checking whether listener_ is nullptr or not.
Change-Id: Ied8d03d9bc772542837d7f8b5f2eb1ad8a61c5e9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 26 Dec 2023 07:26:24 +0000 (16:26 +0900)]
Release version 1.14.17
Changes:
- Fix deadlock issue
Change-Id: Ia58ca61148f2fd4db4725000b0fbd1cbaeb306ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 26 Dec 2023 07:04:17 +0000 (16:04 +0900)]
Fix deadlock issue
This patch fixes deadlock issue.
When CynaraThread was blocked from WaitAndPop() and the instance was desctucted at the same time,
CynaraThread occurs deadlock.
Change-Id: Iee2c6fb02dd1f5fd6b9b5331c4d87ddbbb880697
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 13 Dec 2023 23:21:59 +0000 (08:21 +0900)]
Release version 1.14.16
Changes:
- Fix the use of incorrect options
Change-Id: I3c606d3b843b5f63a7858cf647e3ec81854046f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 13 Dec 2023 22:17:30 +0000 (07:17 +0900)]
Fix the use of incorrect options
The value that should be set for flags of the fcntl() is FD_CLOEXEC.
This patch modifies to use FD_CLOEXEC instead of O_CLOEXEC.
Change-Id: I443a54ba18098d1bd2f094cdb081ad6b54fbd02b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Sep 2023 08:09:25 +0000 (17:09 +0900)]
Release version 1.14.15
Changes:
- Fix OnResultReceived() of proxy
Change-Id: Idde71316987151f21fc79901ff09904b63e1c50d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Sep 2023 07:27:20 +0000 (16:27 +0900)]
Fix OnResultReceived() of proxy
This patch adds printing logs for debugging.
Before calling the OnConnected(), the rpc-port library checks whether
main and delegate ports are nullptrs or not.
Change-Id: Ief9fb0da872058b8451165a0492f73509bdc1ce0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Sep 2023 04:56:12 +0000 (13:56 +0900)]
Release version 1.14.14
Changes:
- Fix static analysis issues
Change-Id: If9f6746c59383c3dcc09caf605d2cf10fe9b080b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 19 Sep 2023 01:54:20 +0000 (10:54 +0900)]
Fix static analysis issues
Issues:
- COPY_INSTEAD_OF_MOVE
Change-Id: Ie072a4808a2170dea24e337a5aaf7828e752763d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 19 Sep 2023 00:41:53 +0000 (09:41 +0900)]
Release version 1.14.13
Changes:
- Add exception handlings
Change-Id: I04ce827edb906d6a39dc16d6db2dcbd8b5ac9989
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 Sep 2023 22:37:38 +0000 (07:37 +0900)]
Add exception handlings
The generated code can throw InvalidIOException and std::bad_weak_ptr
exceptions. This patch adds exception handlings.
Change-Id: I91e4d1fecab9e4e9a2047efe47f4616a396b9b00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 12 Sep 2023 06:30:08 +0000 (15:30 +0900)]
Release version 1.14.12
Changes:
- Set close on exec for client socket
Change-Id: Ibc960b181ead21a8111d8f06f6afec95c5bf6b05
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 12 Sep 2023 05:58:06 +0000 (14:58 +0900)]
Set close on exec for client socket
To close the client socket fd, this patch sets O_CLOEXEC flag using fcntl().
Change-Id: I90f60c23ffc8aa0e62c93e26b4494493fb08eedb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 11 Sep 2023 07:42:04 +0000 (16:42 +0900)]
Release version 1.14.11
Changes:
- Set close on exec
Change-Id: Ia85f9ae058728d429182b3fd049575136016cf2a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 11 Sep 2023 02:17:36 +0000 (11:17 +0900)]
Set close on exec
To avoid inheriting fd to the child process, this patch sets close on
exec flag to fd.
Change-Id: I3ab2255e8cd80ad50ffbf355e51f0acec1030d68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>