Gets hang

test_https_proxy.rb e$B$,e(B timeout e$B$9$k$H$$$&$N$GDI$$$+$1$?$H$3e(B
e$B$m!"$3$l$^$?e(B gets e$B$N$h$&$G$9!#e(B

% ./miniruby -ve ’
r, w = IO.pipe
Thread.new {
w << “foooo\r\n”
sleep 0.5
w << “\r\n”
}
p r.gets("\r\n\r\n")’
ruby 1.9.0 (2007-12-25 revision 0) [i686-linux]

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32770] gets hang”
on Tue, 25 Dec 2007 16:33:08 +0900, Tanaka A. [email protected]
writes:
|
|test_https_proxy.rb e$B$,e(B timeout e$B$9$k$H$$$&$N$GDI$$$+$1$?$H$3e(B
|e$B$m!"$3$l$^$?e(B gets e$B$N$h$&$G$9!#e(B

e$B:G=i$Ne(Bfille$B$G$O%G!<%?$,$^[email protected]$$$F$*$i$:!"e(B2e$BEYL$NFI$_9~$_A0$Ke(B
rb_thread_wait_fd()e$B$7$F$$$k$H$3$m$Ge(B(e$BFO$$$F$$$k$O$:$J$N$Ke(B)e$B%Ve(B
e$B%m%C%/$7$F$7$^$&$h$&$G$9!#$J$<!)e(B

e$B%3%s%F%-%9%H%9%$%C%A$7$F$J$$$N$+$J$"!#e(B

In article [email protected],
Yukihiro M. [email protected] writes:

e$B:G=i$Ne(Bfille$B$G$O%G!<%?$,$^[email protected]$$$F$*$i$:!"e(B2e$BEYL$NFI$_9~$_A0$Ke(B
rb_thread_wait_fd()e$B$7$F$$$k$H$3$m$Ge(B(e$BFO$$$F$$$k$O$:$J$N$Ke(B)e$B%Ve(B
e$B%m%C%/$7$F$7$^$&$h$&$G$9!#$J$<!)e(B

e$B:G=i$KH>J,FO$$$F!"<!$K;D$j$NH>J,$,FO$$$F!"$5$i$K$b$C$H$h$3$;e(B
e$B$H$$$&$+$i%V%m%C%/$9$k$h$&$K8+$($^$9!#e(B

e$B:G6ae(B appendline e$B$G8!::$9$k$h$&$K$7$?$N$,$h$m$7$/$J$$$N$G$O!#e(B

IO e$B$r07$&$H$-$K$O>o$KCfESH>C<$KFO$/$H$$$&$3$H$r9MN8$7$J$$$H!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32778] Re: gets hang”
on Tue, 25 Dec 2007 17:45:54 +0900, Tanaka A. [email protected]
writes:

|e$B:G=i$KH>J,FO$$$F!"<!$K;D$j$NH>J,$,FO$$$F!"$5$i$K$b$C$H$h$3$;e(B
|e$B$H$$$&$+$i%V%m%C%/$9$k$h$&$K8+$($^$9!#e(B
|
|e$B:G6ae(B appendline e$B$G8!::$9$k$h$&$K$7$?$N$,$h$m$7$/$J$$$N$G$O!#e(B

e$B$"!"$d$C$HM}2r$7$^$7$?!#$5$C$=$/D>$7$^$9!#e(B
e$B$3$lD>$7$?$i%j%j!<%9$G$-$k$+$J$"!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs