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
44d5cf33
Unverified
Commit
44d5cf33
authored
Feb 22, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collapse the MacOS case with Solaris & NetBSD in VTCP_Check()
parent
e5391c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
vtcp.c
lib/libvarnish/vtcp.c
+6
-10
No files found.
lib/libvarnish/vtcp.c
View file @
44d5cf33
...
...
@@ -610,18 +610,14 @@ VTCP_Check(ssize_t a)
if
(
errno
==
EPROTO
)
return
(
1
);
#endif
#if (defined (__SVR4) && defined (__sun)) || defined (__NetBSD__)
#if (defined (__SVR4) && defined (__sun)) || \
defined (__NetBSD__) || \
defined (__APPLE__)
/*
* Solaris returns EINVAL if the other end unexpectedly reset the
* connection.
* This is a bug in Solaris and documented behaviour on NetBSD.
*/
if
(
errno
==
EINVAL
||
errno
==
ETIMEDOUT
)
return
(
1
);
#elif defined (__APPLE__)
/*
* MacOS returns EINVAL if the other end unexpectedly reset
* Solaris and MacOS returns EINVAL if the other end unexpectedly reset
* the connection.
*
* On NetBSD it is documented behaviour.
*/
if
(
errno
==
EINVAL
)
return
(
1
);
...
...
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