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
c7b92c90
Commit
c7b92c90
authored
Oct 01, 2011
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Oct 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try harder to fix solaris IOV_MAX related issue.
parent
c888c08d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cache_wrw.c
bin/varnishd/cache_wrw.c
+6
-3
No files found.
bin/varnishd/cache_wrw.c
View file @
c7b92c90
...
...
@@ -179,14 +179,16 @@ WRW_Write(struct worker *w, const void *ptr, int len)
return
(
0
);
if
(
len
==
-
1
)
len
=
strlen
(
ptr
);
if
(
wrw
->
niov
==
wrw
->
siov
+
(
wrw
->
ciov
<
wrw
->
siov
?
1
:
0
))
if
(
wrw
->
niov
>=
wrw
->
siov
-
(
wrw
->
ciov
<
wrw
->
siov
?
1
:
0
))
(
void
)
WRW_Flush
(
w
);
wrw
->
iov
[
wrw
->
niov
].
iov_base
=
TRUST_ME
(
ptr
);
wrw
->
iov
[
wrw
->
niov
].
iov_len
=
len
;
wrw
->
liov
+=
len
;
if
(
wrw
->
ciov
<
wrw
->
siov
)
wrw
->
cliov
+=
len
;
wrw
->
niov
++
;
if
(
wrw
->
ciov
<
wrw
->
siov
)
{
assert
(
wrw
->
niov
<
wrw
->
siov
);
wrw
->
cliov
+=
len
;
}
return
(
len
);
}
...
...
@@ -208,6 +210,7 @@ WRW_Chunked(struct worker *w)
wrw
->
ciov
=
wrw
->
niov
++
;
wrw
->
cliov
=
0
;
assert
(
wrw
->
ciov
<
wrw
->
siov
);
assert
(
wrw
->
niov
<
wrw
->
siov
);
}
/*
...
...
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