Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace FILE* functions with their file descriptor equivalents #143

Closed
wants to merge 1 commit into from

Conversation

georgekola
Copy link

FILE* functions are limited by FOPEN_MAX. On FreeBSD 10.1, this is
SHRT_MAX (32767). Unfortunately, on a busy server with lots of memory,
this limit could easily be hit. Note that open sockets and files opened
by open system call variants also count towards this limit. This
replacement is actually better for logging as we directly write to
file instead of fwrite followed by fflush.

FILE* functions are limited by FOPEN_MAX. On FreeBSD 10.1, this is
SHRT_MAX (32767). Unfortunately, on a busy server with lots of memory,
this limit could easily be hit. Note that open sockets and files opened
by open system call variants also count towards this limit. This
replacement is actually better for logging as we directly write to
file instead of fwrite followed by fflush.
@matthewvon
Copy link
Contributor

Basho has closed down. Doubt anyone has access to merge the PR. Just letting you know.

@georgekola
Copy link
Author

Thanks @matthewvon for letting me know

@georgekola georgekola closed this Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants