Created
June 12, 2016 05:14
-
-
Save laurynas/4aeb7cad3bb397d14a15308cc8d97362 to your computer and use it in GitHub Desktop.
Debug memached socket timeouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'socket' | |
s = UNIXServer.new '/tmp/dummymemcached' | |
#s = TCPServer.new 11212 | |
loop do | |
c = s.accept | |
line = c.gets | |
puts line | |
sleep 2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Client: