projects
/
riece
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b15f103
)
Fixed.
author
Daiki Ueno
<ueno@unixuser.org>
Sun, 14 Dec 2003 04:07:25 +0000
(
04:07
+0000)
committer
Daiki Ueno
<ueno@unixuser.org>
Sun, 14 Dec 2003 04:07:25 +0000
(
04:07
+0000)
lisp/riece-async.el
patch
|
blob
|
history
diff --git
a/lisp/riece-async.el
b/lisp/riece-async.el
index
c39ccbe
..
30eb658
100644
(file)
--- a/
lisp/riece-async.el
+++ b/
lisp/riece-async.el
@@
-50,11
+50,9
@@
(defcustom riece-async-server-program
'("\
require 'io/nonblock'
(defcustom riece-async-server-program
'("\
require 'io/nonblock'
-
socket = TCPSocket.new(" host ", " service ")
$stdout.write(\"NOTICE CONNECTED #{$$}\r\n\")
$stdout.flush
socket = TCPSocket.new(" host ", " service ")
$stdout.write(\"NOTICE CONNECTED #{$$}\r\n\")
$stdout.flush
-
$stdout.nonblock = true
trap('STOP', 'IGNORE')
trap('TSTP', 'IGNORE')
$stdout.nonblock = true
trap('STOP', 'IGNORE')
trap('TSTP', 'IGNORE')
@@
-72,7
+70,7
@@
loop do
rescue Errno::EAGAIN
end
end
rescue Errno::EAGAIN
end
end
- if rfds.
delete
(socket)
+ if rfds.
include?
(socket)
line = socket.gets(\"\r\n\")
break unless line
if line =~ /^(?::[^ ]+ +)?PING +(.+)\r\n/i
line = socket.gets(\"\r\n\")
break unless line
if line =~ /^(?::[^ ]+ +)?PING +(.+)\r\n/i
@@
-86,7
+84,7
@@
loop do
end
end
end
end
end
end
- if rfds.
delete
($stdin)
+ if rfds.
include?
($stdin)
line = $stdin.gets(\"\r\n\")
break unless line
socket.write(line)
line = $stdin.gets(\"\r\n\")
break unless line
socket.write(line)
@@
-96,12
+94,12
@@
end
socket.close
exit
")
socket.close
exit
")
- "Ruby program of asynchronous proxy"
+ "Ruby program of asynchronous proxy
.
"
:type 'list
:group 'riece-async)
(defcustom riece-async-max-buffer-size 65535
:type 'list
:group 'riece-async)
(defcustom riece-async-max-buffer-size 65535
- "Maximum size of the write buffer"
+ "Maximum size of the write buffer
.
"
:type 'integer
:group 'riece-async)
:type 'integer
:group 'riece-async)