Project

General

Profile

Feature #8897

client side TCP fast open

Added by Glass_saga (Masaki Matsushita) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:57138]

Description

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

Example:

require "socket"

socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM)
socket.send("foo", Socket::MSG_FASTOPEN, Socket.sockaddr_in(80, "localhost"))


Files

patch.diff (440 Bytes) patch.diff Glass_saga (Masaki Matsushita), 09/11/2013 11:42 PM
test.diff (1.12 KB) test.diff testcase for TCP fast open Glass_saga (Masaki Matsushita), 09/17/2013 11:48 PM

Related issues

Related to Ruby master - Feature #8871: Server side TCP fast openClosed09/07/2013Actions

Associated revisions

Revision 0e7c28a1
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 42948
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

Revision 42948
Added by Glass_saga (Masaki Matsushita) about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

Revision 42948
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

Revision 42948
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

Revision 42948
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

Revision 42948
Added by glass about 6 years ago

  • ext/socket/mkconstants.rb: define MSG_FASTOPEN. [ruby-core:57138] [Feature #8897]

History

Updated by Glass_saga (Masaki Matsushita) about 6 years ago

  • Status changed from Open to Assigned
  • Assignee set to Glass_saga (Masaki Matsushita)

ping. May I commit it?

#2

Updated by Anonymous about 6 years 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. [ruby-core:57138] [Feature #8897]

Updated by kosaki (Motohiro KOSAKI) about 6 years 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 Glass_saga (Masaki Matsushita) about 6 years ago

kosaki (Motohiro KOSAKI) wrote:

Please make testcase too.

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

Also available in: Atom PDF