projects
/
platform
/
core
/
ml
/
aitt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75cfcda
)
Fix a faulty socket option.
author
Chanhee Lee
<ch2102.lee@samsung.com>
Wed, 17 Aug 2022 10:10:14 +0000
(19:10 +0900)
committer
Youngjae Shin
<yj99.shin@samsung.com>
Thu, 15 Sep 2022 05:24:24 +0000
(14:24 +0900)
[Problem] TCP_NODELAY is used with IPPROTO_IP instead of IPPROTO_TCP.
[Solution] Fix the option value correctly.
modules/tcp/TCP.cc
patch
|
blob
|
history
diff --git
a/modules/tcp/TCP.cc
b/modules/tcp/TCP.cc
index
3b6751e
..
cce38f9
100644
(file)
--- a/
modules/tcp/TCP.cc
+++ b/
modules/tcp/TCP.cc
@@
-98,7
+98,7
@@
void TCP::SetupOptions(void)
{
int on = 1;
- int ret = setsockopt(handle, IPPROTO_
I
P, TCP_NODELAY, &on, sizeof(on));
+ int ret = setsockopt(handle, IPPROTO_
TC
P, TCP_NODELAY, &on, sizeof(on));
if (ret < 0) {
ERR_CODE(errno, "delay option setting failed");
}