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

Litespeed sapi OpenBSD build fix #3999

Merged
merged 3 commits into from Jun 9, 2021
Merged

Conversation

devnexen
Copy link
Member

attempt to core dump in the proper place.
kernel sendfile feature does not exist so
userland implementation for the poor ... no chance
to reach the speed of light ...

@devnexen devnexen changed the base branch from master to PHP-7.4 March 28, 2019 08:42
*off += written;
return 0;
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sendfile implementation taken from somewhere?

Copy link
Member Author

@devnexen devnexen Apr 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not taken, this is just read a file descriptor and writing in another one, I chose a small buffer for starter then increased to gain a little bit but no match for kernel space implementation.

@cmb69
Copy link
Contributor

cmb69 commented Apr 24, 2019

Hmm, what's George's Github handle?

@devnexen
Copy link
Member Author

ld: error: undefined symbol: sendfile

Copy link
Member

@petk petk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build seems to succeed with this patch on OpenBSD...

@devnexen
Copy link
Member Author

devnexen commented May 27, 2019

Done with it, at worse DragonflyBSD supports sendfile call just as FreeBSD ...

@cmb69
Copy link
Contributor

cmb69 commented May 27, 2019

cc @litespeedtech

@petk
Copy link
Member

petk commented May 27, 2019

cc @davidlst

@krakjoe
Copy link
Member

krakjoe commented Jun 9, 2021

@devnexen can you please update this for master branch ?

Since we can test this ourselves now, I'm happy to ship in 8.1 if the build passes ... we'll need CI to build litespeed on fbsd in that case ...

@devnexen
Copy link
Member Author

devnexen commented Jun 9, 2021

It s OpenBSD the choices of CI for this are even thinner (radare2 for example is able to). On FreeBSD it should build fine as it supports sendfile natively.

attempt to core dump in the proper place.
kernel sendfile feature does not exist so
userland implementation for the poor ... no chance
to reach the speed of light ...
@devnexen devnexen changed the base branch from PHP-7.4 to master June 9, 2021 05:32
@krakjoe
Copy link
Member

krakjoe commented Jun 9, 2021

Ah, gotcha.

So currently, we can't test this, but I assume you have ?

I'm happy to take your word for it as our emerging bsd variant expert, if it looks good to you it looks good to me.

Is it worth your time to setup that CI ?

@devnexen
Copy link
Member Author

devnexen commented Jun 9, 2021

nevermind, radare2 seems to have removed the CI support maybe that was not reliable enough.

@krakjoe
Copy link
Member

krakjoe commented Jun 9, 2021

Okay, but to confirm you've run this through your own tests on the relevant platform, yes ?

@devnexen
Copy link
Member Author

devnexen commented Jun 9, 2021

yes I did a quick one.

@krakjoe krakjoe merged commit 7d5a9dd into php:master Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants