Displaying 20 results from an estimated 100 matches for "start_server".
2008 Apr 30
5
get_peername - start_server vs. connect
Hi,
On windows, get_peername works both with connections obtained
via start_server, and connections obtained via connect.
On linux, get_peername seems to only work with connections
obtained via start_server.
(I''m using svn HEAD.)
I''m wondering which is the intended behavior?
(I realize get_peername is less useful for connections obtained
via connect, since o...
2018 Feb 21
2
Re: [nbdkit PATCH v2] plugin: add and use nbdkit_realpath
On Wednesday, 14 February 2018 18:06:10 CET Eric Blake wrote:
> On 02/14/2018 10:53 AM, Pino Toscano wrote:
> > Introduce a new helper function to resolve a path name, calling
> > nbdkit_error on failure: other than doing what nbdkit_absolute_path
> > does, it also checks that the file exists (and thus avoids errors later
> > on). To help distinguish it from
2006 Dec 15
5
Testing event driven Socket classes
...based on EventMachine library.
I want to mock the class TickServer ( i.e not stub it) . Since in
actual scenario, you can''t do this on this class:
@server = TickServer.new # will toss an exception at your face
you must initialize the server like this:
EventMachine.run {
EventMachine.start_server("192.168.2.252",6200,TickServer) do |conn|
conn.hello_world
end
}
Where conn holds the instance of the class TickServer. So, I want to
mock this class, so that i don''t have to create an actual socket
connection.
Please look in the code, carefully. most of the methods in c...
2008 Jan 06
5
Having very odd problems with UDP.
I am using eventmachine 0.8.1 on windows XP and am having very odd problems.
This snippet of code gives the error that follows it.
class EchoServer
def receive_data data
puts data
send_data ">>>you sent: #{data}"
if data =~ /quit/i
puts "quitting"
close_connection
EventMachine::stop_event_loop
end
end
end
2019 Nov 04
3
[PATCH nbdkit 0/3] server: Fix crash on close.
This fixes the long-standing crash on close when nbdkit exits.
I did try first to fix threads so we're using a proper thread pool,
but that's difficult to implement. So this does the minimal change
needed to fix the crash instead.
There are still two segfaults that happen during running the test
suite. One is deliberately caused (tests/test-captive.sh). The other
appears to be an
2020 Mar 19
2
Re: Anyone seen build hangs (esp armv7, s390x) in Fedora?
[Dropping devel, adding libguestfs]
This can be reproduced on x86-64 so I can reproduce it locally. It
only appears to happen when the tests are run under rpmbuild, not when
I run them as ‘make check’, but I'm unclear why this is.
As Eric described earlier, the test runs two copies of nbdkit and a
client, connected like this:
qemu-img info ===> nbdkit nbd ===> nbdkit example1
2018 Feb 21
0
Re: [nbdkit PATCH v2] plugin: add and use nbdkit_realpath
On 02/21/2018 11:13 AM, Pino Toscano wrote:
> On Wednesday, 14 February 2018 18:06:10 CET Eric Blake wrote:
>> On 02/14/2018 10:53 AM, Pino Toscano wrote:
>>> Introduce a new helper function to resolve a path name, calling
>>> nbdkit_error on failure: other than doing what nbdkit_absolute_path
>>> does, it also checks that the file exists (and thus avoids errors
2006 Apr 29
1
error rsync'ing links of the form ../xxx
...link
like this:
/tmp/rsync -av /opt/iat/IaT3.1.1/bin/* uxgary::root/opt/iat/IaT3.1/bin
building file list ... done
compile_plan.py -> ../python/compile_plan.py
iat_status -> ../python/iat_status.py
load_iat_xml.py -> ../python/load_iat_xml.py
show_engine.py -> ../python/show_engine.py
start_server.py -> ../python/start_server.py
stop_server.py -> ../python/stop_server.py
However, at the destination the .. is missing. for example
the link "../python/compile_plan.py" becomes "python/compile_plan.py"
at the destination.
Gary Aviv
This e-mail and any attachments are...
2007 Feb 15
2
Client can trick daemon into running server code with am_server == 0
Dear rsync people (particularly Wayne),
I noticed that an rsync daemon counts on the client sending a --server
option so that am_server gets set to 1. If the client doesn't supply
this option, am_server remains 0 but the daemon runs start_server
anyway. This is potentially dangerous and might lead to a security
hole, although I haven't found one yet. I suggest that the daemon
either set am_server = 1 explicitly or drop the connection with an
error if the client doesn't supply --server.
Matt
2007 Dec 17
1
Some more updates, enhancements and fixes
...a(text)
thread_pool.defer(text) do |text|
scrap_and_store_text(text)
end
end
Please consult backgroundrb documentation for more information about
this. By default the thread pool is of size 20.
5. Wrote examples on, how to use "connect" and "start_server" methods
from backgroundrb workers. Again, consult documentation for it.
Lets try/run it for a while and it will be released as 1.0 .
--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.
http:/...
2008 Aug 18
8
DO NOT REPLY [Bug 5701] New: deadlock on local rsyncing, bisected to commit f303b749f2843433c9acd8218a4b9096d0d1bb8d
...uffered () from /proc/22367/exe
#3 0x00007fa36509bd33 in readfd () from /proc/22367/exe
#4 0x00007fa36509c0f6 in read_msg_fd () from /proc/22367/exe
#5 0x00007fa3650834d5 in generate_files () from /proc/22367/exe
#6 0x00007fa36508e29c in do_recv () from /proc/22367/exe
#7 0x00007fa36508ed82 in start_server () from /proc/22367/exe
#8 0x00007fa36508fc55 in child_main () from /proc/22367/exe
#9 0x00007fa3650a943e in local_child () from /proc/22367/exe
#10 0x00007fa36508cb45 in do_cmd () from /proc/22367/exe
#11 0x00007fa36508f53f in main () from /proc/22367/exe
$ gstack 22368
#0 0x0000000000a24ad3 i...
2020 Feb 22
2
Re: Plans for nbdkit 1.18 release?
Eric:
Did you want to take this one any further? It might be one that we
save for > 1.18:
https://www.redhat.com/archives/libguestfs/2020-February/thread.html#00206
Another thing I've been thinking about for some time is splitting
.config_complete into .config_complete + .get_ready (new name TBD).
At the moment .config_complete is both the place where we finish
processing config, and
2020 Feb 22
1
Re: Plans for nbdkit 1.18 release?
On Sat, Feb 22, 2020 at 05:11:01AM -0600, Eric Blake wrote:
> On 2/22/20 4:37 AM, Richard W.M. Jones wrote:
> >Another thing I've been thinking about for some time is splitting
> >.config_complete into .config_complete + .get_ready (new name TBD).
> >At the moment .config_complete is both the place where we finish
> >processing config, and also the last chance we get
2008 Apr 10
1
Communicating Worker-to-Worker
...g, but what I''m really
trying to test here is how to communicate between the two workers, not
whether the connection_worker is alive.
So I''m wondering what the best way to communicate between these workers is.
I took a look at the advanced stuff and I think that maybe connect and
start_server could work for me, but the documentation on them leaves me
confused as to how to actually implement them. Any suggestions or help would
be much appreciated.
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attach...
2017 Oct 31
2
[Bug 13112] New: receive_xattr heap overread with non null terminated name and xattr filter
...c:744
#4 0x4a2d76 in receive_xattr /home/raj/rsync/rsync/xattrs.c:835
#5 0x40beac in recv_file_entry /home/raj/rsync/rsync/flist.c:1108
#6 0x415bee in recv_file_list /home/raj/rsync/rsync/flist.c:2476
#7 0x454eaa in do_server_recv /home/raj/rsync/rsync/main.c:1036
#8 0x4556f4 in start_server /home/raj/rsync/rsync/main.c:1115
#9 0x4b20f2 in rsync_module /home/raj/rsync/rsync/clientserver.c:1007
#10 0x4b2b11 in start_daemon /home/raj/rsync/rsync/clientserver.c:1135
#11 0x48f636 in start_accept_loop /home/raj/rsync/rsync/socket.c:618
#12 0x4b32d2 in daemon_main /home/raj/r...
2004 Dec 07
1
rsync hangs when tunneling... help!
...5236c in _select () from /usr/lib/libc.so.1
#2 0x00025ee8 in writefd_unbuffered ()
#3 0x00026f4c in io_multiplex_write ()
#4 0x0001ce6c in rwrite ()
#5 0x0001cfcc in rprintf ()
#6 0x00012ae0 in recv_generator ()
#7 0x000139fc in generate_files ()
#8 0x00019528 in do_recv ()
#9 0x000197f4 in start_server ()
#10 0x0002fec4 in start_daemon ()
#11 0x00030088 in daemon_main ()
#12 0x0001a52c in main ()
server child process:
#0 0xff19db44 in _poll () from /usr/lib/libc.so.1
#1 0xff15236c in _select () from /usr/lib/libc.so.1
#2 0x000251e0 in read_timeout ()
#3 0x00025cc4 in readfd_unbuffered ()
#...
2019 Oct 11
0
[PATCH NOT WORKING nbdkit v2 1/2] server: Add .ready_to_serve plugin method.
This method can be used for plugins to get control after the server
has forked and changed user but before it accepts a connection. This
is very late and the only real use for this is for a plugin to create
background threads for its own use.
---
docs/nbdkit-filter.pod | 20 +++++++++++++++-----
docs/nbdkit-plugin.pod | 27 ++++++++++++++++++++++++++-
include/nbdkit-filter.h | 2 ++
2019 Nov 04
3
[PATCH nbdkit v2 0/2] Implement fuzzing using Clang's libFuzzer.
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00003.html
This version depends on:
https://www.redhat.com/archives/libguestfs/2019-November/msg00004.html
and this series:
https://www.redhat.com/archives/libguestfs/2019-November/msg00009.html
The delta has been reduced slightly because of changes made possible
by cleaning up and fixing the quit path in nbdkit. It's
2014 Mar 26
11
[Bug 10518] New: rsync hangs (100% cpu)
...#2 0x0000000000426cf4 in match_sums (f=1, s=0x192d220, buf=0x192d1e0,
len=214748364800) at match.c:398
#3 0x000000000041a175 in send_files (f_in=0, f_out=1) at sender.c:391
#4 0x0000000000423620 in do_server_sender (f_in=0, f_out=1, argc=1,
argv=0x18da238) at main.c:822
#5 0x0000000000423f1f in start_server (f_in=0, f_out=1, argc=2,
argv=0x18da230) at main.c:1089
#6 0x0000000000425282 in main (argc=2, argv=0x18da230) at main.c:1630
(gdb) quit
-- a number of seconds later --
root at st1:~# gdb /usr/bin/rsync 4942
--snip--
0x0000000000426972 in hash_search (f=1, s=0x192d220, buf=0x192d1e0,
len=21474836...
2007 Dec 28
2
hang with rsync 3.0.0pre7 doing local copy
...01", N=4) at io.c:1144
#4 0x0000000000424dcf in read_msg_fd () at io.c:342
#5 0x000000000040fd1f in generate_files (f_out=1, local_name=<value optimized out>) at generator.c:2089
#6 0x00000000004190b4 in do_recv (f_in=0, f_out=1, local_name=0x0) at main.c:848
#7 0x00000000004198a3 in start_server (f_in=0, f_out=1, argc=1, argv=<value optimized out>) at main.c:958
#8 0x000000000041af15 in child_main (argc=490388736, argv=0xffffffffffffffff) at main.c:965
#9 0x0000000000430b2e in local_child (argc=2, argv=0x7fff1d3aff00, f_in=0x7fff1d3b2f2c, f_out=0x7fff1d3b2f28, child_main=0x41af00 &...