search for: sysread

Displaying 20 results from an estimated 38 matches for "sysread".

Did you mean: sys_read
2006 Aug 17
1
sysread error in "net" library?
Hi, I am reading RSS feeds and quite often I get the following error in the "net" library. Anybody had such error before? Any info would be very useful? Thanks, Hari ----- /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'': end of file reached (EOFError) from /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'' from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'' from /usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill''...
2006 Aug 28
2
sysread': end of file reached (EOFError)
Hi, I am trying to access the gmail account through net/pop library.However, I have an error such that: c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `sysread'': end of file reached (EOFError) from c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'' from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'' from c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'...
2005 Dec 22
4
Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
I''m trying to set up switchtower, following the info in the Manual, but am getting this error when I run "rake remote_exec ACTION=setup": servers: ["cantona.dnswatchdog.com"] /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:203:in `sysread'': bignum too big to convert into `long'' (RangeError) from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:203:in `read'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:167:in `get'&...
2008 Jul 30
3
Connection Reset Exceptions?
Does anyone else get these? A Errno::ECONNRESET occurred in facebook#index: Connection reset by peer /usr/lib64/ruby/1.8/net/protocol.rb:133:in `sysread'' Today it was on a user.populate call... I am wondering if it makes sense to catch and retry for this exception. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080730/a448f2a1/attachme...
1999 Dec 06
1
Ugly patch to openssh-1.2pre15
Hi, I am behind a firewall which does not permit connections to port 22, so I run my ssh server on port 23. :-) Unfortunately, the stupid firewall prints a few lines of junk when you make a connection to port 23 before actually starting the connection. This confuses ssh. Attached is an (ugly) patch against openssh-1.2pre15 which makes it ignore a configurable number of lines while looking for
2010 Apr 29
2
[PATCH 1/2] SSH: Check for complete transfer of disk images
--- lib/Sys/VirtV2V/Transfer/SSH.pm | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/Sys/VirtV2V/Transfer/SSH.pm b/lib/Sys/VirtV2V/Transfer/SSH.pm index 3b08716..ac5a384 100644 --- a/lib/Sys/VirtV2V/Transfer/SSH.pm +++ b/lib/Sys/VirtV2V/Transfer/SSH.pm @@ -82,6 +82,7 @@ sub transfer my $vol = $target->create_volume($name, $size); $vol->open(); +
2006 Jul 07
3
Send a 30 Second Clip of an mp3
On my site I''m allowing users to upload songs in mp3 format. Members can download the full song, but on public pages I would like to use a flash player to play a 30 second clip of the song and/or allow downloading of a 30 second mp3 snippet. The songs are stored above the web root directory, and I use the send_file method for the full file downloads for members. My question is,
2008 Mar 21
0
Fwd: Is select() untrustworthy on Windows when used with handles from popen3?
...e''s an example that has me confused: d:\>irb irb(main):001:0> require ''win32/open3'' => true irb(main):002:0> i,o,e = Open3.popen3(''date'') => [#<IO:0x2b42a4c>, #<IO:0x2b42a24>, #<IO:0x2b42a10>, 3164] irb(main):003:0> o.sysread(70) => "The current date is: Thu 03/13/2008 \nEnter the new date: (mm-dd-yy) " irb(main):004:0> select([o],nil,nil,1) => [[#<IO:0x2b42a24>], [], []] irb(main):005:0> o.sysread(1) # => here, it hangs... even though it *says* there''s input to read ]== Since we...
2006 Feb 08
2
ActionMailer EOFError (sometimes)
...l not get sent. Does anybody know what situations will make this error appear? Slow or non-responsive connection to the mail server? The user hitting ESC before the page finishes? Here is the full trace for one: EOFError (End of file reached): /usr/local/lib/ruby/1.8/net/protocol.rb:197:in `sysread'' /usr/local/lib/ruby/1.8/net/protocol.rb:197:in `rbuf_fill'' /usr/local/lib/ruby/1.8/net/protocol.rb:196:in `timeout'' /usr/local/lib/ruby/1.8/timeout.rb:55:in `timeout'' /usr/local/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill'' /usr/lo...
2008 Jun 09
1
FX ruby program error EOF
...nding the cause. As it seems that the error is in the middle of fxruby and not in my application. I click on button1 - the first time every works perfect. Handling the next record, pressing button1 leads to this error. Any help is appreciated. Ernst C:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `sysread'': end of file reached (EOFError) from C:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from C:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'' from C:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'' from C:/ruby/lib/ruby/1.8/net/protocol.rb:132:...
2010 Apr 06
1
[PATCH] RHEV: Use dd and direct io to write to NFS
...ath) - or die(__x("Unable to open {path} for writing: {error}", - path => "$path", - error => $!)); - - # Write all data received to the data file - my $buffer; - - for(;;) { - my $ret = sysread(STDIN, $buffer, 64*1024); - die("Error in NFSHelper reading from stdin: $!") - unless (defined($ret)); - last if ($ret == 0); - - print $data $buffer; - } - - close($data) - or die(user_message(__x("Error closin...
2007 Apr 23
4
send_file pdf problem
Hi, I am using send_file to allow users to download files from my website, please see code beloe: def download_document send_file("#{RAILS_ROOT}/public/test_form.pdf", :filename => "test.pdf", :type => ''application/pdf'', :disposition => ''attachment'', :streaming
2008 Jun 15
3
Using checkpassword to block ips?
...is should reject the connection if the IP matches. checkpassword can see TCPREMOTEIP enviornmental variable. In the checkpassword script we have: #!/usr/bin/perl sub read_uinfo { my($user,$passwd,$apop_ts); open X,"<&=3" or exit 111; $_ = <X>; # ugly; should use sysread instead ($user,$passwd,$apop_ts) = /^(.*)\0(.*)\0(.*)\0/; while (<X>) {}; close X; return ($user,$passwd,$apop_ts); } ($user,$passwd,$apop_ts)=$debug?(shift,shift,shift):read_uinfo; $ipaddr=$ENV{TCPREMOTEIP}; $result=system("/usr/sbin/checkdnsbl $ipaddr"); if ( $result =...
2013 Nov 05
4
Handling closed clients
...@@ -145,8 +145,7 @@ class WebServerTest < Test::Unit::TestCase # processing on us even during app dispatch sock.shutdown(Socket::SHUT_WR) IO.select([sock], nil, nil, 60) or raise "Timed out" - buf = sock.read - assert_equal "", buf + assert_match %r{\AHTTP/1.[01] 500\b}, sock.sysread(4096) next_client = Net::HTTP.get(URI.parse("http://127.0.0.1:#@port/")) assert_equal ''hello!\n'', next_client lines = File.readlines("test_stderr.#$$.log") @@ -265,4 +264,55 @@ class WebServerTest < Test::Unit::TestCase def test_listener_names assert_equal [...
2006 Jan 30
1
Asterisk SIP phones to Cisco Unity via CCM4.0SIP Trunk
...u can run a SIP image on a 7940. Asterisk@home has pretty good support for it. Check the voip-info.org wiki for instructions on switching the firmware. Hopefully that will take a step out of the plan -- you could completely ditch your Cisco system :) On 1/23/06, sys read <sysread@gmail.com> wrote: > > Hi, > > I've got a CCM ( Cisco Call Manager ), with a Cisco Unity VM server and > about 45 SCCP phones on the ccm, and 200 users on unity. we want to > migrate all users to IP Phones to ditch our ancient phone system. I would...
2007 Feb 22
0
error with send_file.. please help me...
...ot;Streaming file #{path}" unless logger.nil? len = options[:buffer_size] || 4096 File.open(path, ''rb'') do |file| if output.respond_to?(:syswrite) begin while true output.syswrite(file.sysread(len)) end rescue EOFError end else while buf = file.read(len) output.write(buf) end end end } else logger.info "Sending file #...
2007 Sep 14
1
Unable to scrap gmail.com - EOFError: End of file reached
...to login into the Gmail.com server, as described in http://schf.uc.org/articles/2007/02/14/scraping-gmail-with-mechanize-and-hpricot but am running into a few issues... irb(main):010:0> page = agent.submit form EOFError: end of file reached from /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'' from /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'' from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'' from /usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill''...
2006 Jan 23
1
Asterisk SIP phones to Cisco Unity via CCM 4.0 SIP Trunk
Hi, I've got a CCM ( Cisco Call Manager ), with a Cisco Unity VM server and about 45 SCCP phones on the ccm, and 200 users on unity. we want to migrate all users to IP Phones to ditch our ancient phone system. I would love to get Linksys-Sipura SPA-941s for the 150 users not on IP phones yet and run sip to an asterisk server, but have their voicemail on Unity. these phones are $150 each,
2006 Jan 08
2
EOF ERROR occurs when sending mail by ROR
...Could you please kindly tell me the reason for it and how to deal with it. Thank you. ------------------------------- EOFError in Order#confirm End of file reached RAILS_ROOT: ./script/../config/../ Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in `sysread'' c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in `rbuf_fill'' c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in `timeout'' c:/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout'' c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill'' c:/ruby/lib/ruby/1.8/net/protocol.rb:16...
2009 Mar 04
1
performance problem with 3.2.8: unbuffered reads for some users
...parameters negotiated? Do you have any idea why the behavior depends on the connected user? Any hints how I could further track down this problem? Cheers, --leo The test was done using 2 byte reads on the windows box: perl -le 'sysopen(F, "R:/firefox/LICENSE", O_RDONLY); do { $n= sysread(F, $buf, 2) } while ($n)' The result can be found here: smbadmin (buffered reads): http://leo.kloburg.at/tmp/samba/smbadmin-tshark.txt abergolth (unbuffered reads, same box): http://leo.kloburg.at/tmp/samba/abergolth-tshark.txt smb.conf http://leo.kloburg.at/tmp/samba/smb.conf -- e-mail...