Skip to content

Adding TCP_FASTOPEN_CONNECT prevents compiling on older systems #54604

New issue

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

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

Already on GitHub? # to your account

Open
abcbarryn opened this issue Aug 28, 2024 · 7 comments
Open

Adding TCP_FASTOPEN_CONNECT prevents compiling on older systems #54604

abcbarryn opened this issue Aug 28, 2024 · 7 comments
Labels
cares Issues and PRs related to the c-ares dependency or the cares_wrap binding.

Comments

@abcbarryn
Copy link

Version

v22.7.0

Platform

Linux static1 3.19.4-1.g51ddeac-desktop #1 SMP PREEMPT Mon Apr 13 13:20:55 UTC 2015 (51ddeac) x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Attempt to compile nodejs on an older system that lacks support for TCP_FASTOPEN_CONNECT.

How often does it reproduce? Is there a required condition?

All the time.

What is the expected behavior? Why is that the expected behavior?

Be able to compile/build nodejs from source.

What do you see instead?

error: ‘TCP_FASTOPEN_CONNECT’ undeclared (first use in this function)

Multiple instances of this

Additional information

Please implement an option to disable this feature if the target platform does not support it.

Also, read this: https://blog.apnic.net/2021/07/05/tcp-fast-open-not-so-fast/

@abcbarryn
Copy link
Author

In the mean time, if someone can tell me what the latest version of nodejs is that does not need TCP_FASTOPEN_CONNECT so I can build that?

@climba03003
Copy link
Contributor

climba03003 commented Aug 28, 2024

TCP_FASTOPEN_CONNECT is introduced in c-ares@1.33.0 which landed in 22.7.0.

c-ares@1.33.1 which fixed TCP_FASTOPEN_CONNECT on unsupported platform which landed in yesterday at main.

In the mean time, if someone can tell me what the latest version of nodejs is that does not need TCP_FASTOPEN_CONNECT so I can build that?

I believe the previous version 22.6.0 should be fine to use.

@abcbarryn

This comment was marked as off-topic.

@abcbarryn
Copy link
Author

abcbarryn commented Aug 28, 2024 via email

@abcbarryn
Copy link
Author

I will try 22.6.0 and wait for a new release with this fixed.

PS: Someone needs to delete/disable PiaoR's account. It looks like his message was deleted, but he tried to send me a link to a virus.

@avivkeller avivkeller added the cares Issues and PRs related to the c-ares dependency or the cares_wrap binding. label Aug 28, 2024
@avivkeller
Copy link
Member

I will try 22.6.0 and wait for a new release with this fixed.

Should this issue be closed?

@abcbarryn
Copy link
Author

I have not tested the patch, I am just going to fall back to 22.6.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
cares Issues and PRs related to the c-ares dependency or the cares_wrap binding.
Projects
None yet
Development

No branches or pull requests

4 participants
@abcbarryn @climba03003 @avivkeller and others