This website works better with JavaScript.
Home
Help
Register
Sign In
mirrors
/
libowfat
mirror of
/home/gitosis/repositories/libowfat.git
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
the mmap+write version of io_sendfile sent too much at the end and/or
went into an infinite loop sometimes.
master
Felix von Leitner
17 years ago
parent
3b3b44c6ce
commit
bfe7592705
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
io/io_sendfile.c
+ 1
- 0
io/io_sendfile.c
View File
@ -128,6 +128,7 @@ int64 io_sendfile(int64 out,int64 in,uint64 off,uint64 bytes) {
mapok
:
c
=
(
const
char
*
)
(
e
-
>
mmapped
)
+
(
off
&
0xffff
)
;
left
=
e
-
>
maplen
-
(
off
&
0xffff
)
;
if
(
left
>
bytes
)
left
=
bytes
;
while
(
left
>
0
)
{
m
=
write
(
out
,
c
,
left
)
;
if
(
m
=
=
-
1
)
{
Write
Preview
Loading…
Cancel
Save