⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (207 Bytes)
Bug #9356
» socket-eintr.rb
Anonymous, 01/03/2014 07:29 PM
require
"socket"
trap
"USR1"
do
end
Thread
.
start
do
loop
do
Process
.
kill
:USR1
,
$$
sleep
0.01
end
end
sock
=
TCPSocket
.
new
(
"charlie.bz"
,
80
)
sock
.
write
"GET / HTTP/1.0
\r\n\r\n
"
puts
sock
.
read
« Previous
1
2
Next »
(1-1/2)
Loading...