Skip to content

Instantly share code, notes, and snippets.

@cosimo
Created August 25, 2011 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosimo/1171210 to your computer and use it in GitHub Desktop.
Save cosimo/1171210 to your computer and use it in GitHub Desktop.
Strace of a IO::Socket.recv() from local memcached socket
connect(3, {sa_family=AF_INET, sin_port=htons(11211), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
sendto(3, "get trololol\r\n", 14, 0, NULL, 0) = 14
# ite(1, "# Sent 'get trololol\r# \n# '. Wai"..., 50# Sent 'get trololol
# '. Waiting a response...) = 50
write(1, "\n", 1
) = 1
recvfrom(3, "END\r\n", 2048, 0, NULL, NULL) = 5
recvfrom(3, <stuck-here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment