Feature #8897

client side TCP fast open

Added by Masaki Matsushita 8 months ago. Updated 7 months ago.

Assignee:Masaki Matsushita
Target version:2.1.0


I propose that ruby supports client side TCP fast open.
Attached patch defines Socket::MSG_FASTOPEN.


require "socket"

socket = Socket.new(Socket::AFINET, Socket::SOCKSTREAM)
socket.send("foo", Socket::MSGFASTOPEN, Socket.sockaddrin(80, "localhost"))

patch.diff Magnifier (440 Bytes) Masaki Matsushita, 09/11/2013 11:42 PM

test.diff Magnifier - testcase for TCP fast open (1.12 KB) Masaki Matsushita, 09/17/2013 11:48 PM

Related issues

Related to ruby-trunk - Feature #8871: Server side TCP fast open Closed 09/07/2013

Associated revisions

Revision 42948
Added by glass 7 months ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [Feature #8897]


#1 Updated by Masaki Matsushita 7 months ago

  • Status changed from Open to Assigned
  • Assignee set to Masaki Matsushita

ping. May I commit it?

#2 Updated by Anonymous 7 months ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42948.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [Feature #8897]

#3 Updated by Motohiro KOSAKI 7 months ago

Issue #8897 has been updated by Glass_saga (Masaki Matsushita).

ping. May I commit it?

OK. Please commit the patch.

Please make testcase too.

#4 Updated by Masaki Matsushita 7 months ago

kosaki (Motohiro KOSAKI) wrote:

Please make testcase too.

I made a testcase.
Kosaki-san, can you review it?

Also available in: Atom PDF