Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
6d50fb28
Commit
6d50fb28
authored
Oct 01, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try harder to fix solaris IOV_MAX related issue.
parent
7f56b9d2
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 @
6d50fb28
...
...
@@ -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