dsv
github.com/wader/disable_sendfile_vbox_linux
go get github.com/wader/disable_sendfile_vbox_linux
dsv

github.com/wader/disable_sendfile_vbox_linux

Go VirtualBox vboxsf sendfile bug workaround

go get github.com/wader/disable_sendfile_vbox_linux
Readme
Go VirtualBox vboxsf sendfile bug workaround

If you serve static content from a shared folder you might have run into a vboxsf file corruption bug. This hack disables the sendfile syscall for the go process which will force the standard library to fallback to userland buffered IO.

References:
Ticket #9069 shared folder doesn't seem to update
net: Add ability to disable sendfile

Usage

Save disable_sendfile_vbox_linux.go to somewhere in your go project. Or do

import (
    _ "github.com/wader/disable_sendfile_vbox_linux"
}

in a source file.

License

Public domain. Your free to do whatever you want.

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20170713092428-40f6459883cd
3yrs ago
No alternatives found
No tutorials found
Add a tutorial