Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ab045277
Commit
ab045277
authored
Dec 18, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
f4f0fa33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vtcp.c
lib/libvarnish/vtcp.c
+2
-1
No files found.
lib/libvarnish/vtcp.c
View file @
ab045277
...
...
@@ -324,10 +324,10 @@ VTCP_close(int *s)
void
VTCP_set_read_timeout
(
int
s
,
double
seconds
)
{
#ifdef SO_RCVTIMEO_WORKS
struct
timeval
timeout
;
timeout
.
tv_sec
=
(
int
)
floor
(
seconds
);
timeout
.
tv_usec
=
(
int
)(
1e6
*
(
seconds
-
timeout
.
tv_sec
));
#ifdef SO_RCVTIMEO_WORKS
/*
* Solaris bug (present at least in snv_151 and older): If this fails
* with EINVAL, the socket is half-closed (SS_CANTSENDMORE) and the
...
...
@@ -338,6 +338,7 @@ VTCP_set_read_timeout(int s, double seconds)
&
timeout
,
sizeof
timeout
));
#else
(
void
)
s
;
(
void
)
seconds
;
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment