Hacker News new | past | comments | ask | show | jobs | submit login

Yeah but in practice no browser does this. There is no system call on Linux or Windows to push data as part of the SYN packet. You would have to craft TCP/IP packets and their headers with a raw socket...



Linux does support this for "TCP Fast Open" - the system call used is sendto() or sendmsg() with the MSG_FASTOPEN flag set, in place of the usual connect().


Even if you did do this, any server implementing SYN cookies would ignore the payload and require you to retransmit anyway.


IIRC, both the Linux and BSD socket implementations let you do this with a combination of a few sockopts.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: