<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/source4/lib/socket/connect_multi.c, branch talloc-2.3.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>libsocket: Add "mem_ctx" to socket_create()</title>
<updated>2018-02-27T08:14:17+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2018-02-15T15:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d88f826c7b78d84fef87ab1301b266f11b4162fb'/>
<id>d88f826c7b78d84fef87ab1301b266f11b4162fb</id>
<content type='text'>
Every caller did a talloc_steal() after socket_create(). Just pass in the
correct memory context.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Every caller did a talloc_steal() after socket_create(). Just pass in the
correct memory context.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s4:lib/socket: add socket_connect_multi_ex_*</title>
<updated>2011-11-30T12:41:08+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2011-11-29T15:25:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=706e10820d490e0865b73f66a8665951aa6a71e3'/>
<id>706e10820d490e0865b73f66a8665951aa6a71e3</id>
<content type='text'>
This add an async establish hook, that gets called
before a connection success is detected.

This can be used to do a NBT session request
and it makes sure that we don't cancel the connection
on port 445, just because the tcp connect on port
139 worked.

metze
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This add an async establish hook, that gets called
before a connection success is detected.

This can be used to do a NBT session request
and it makes sure that we don't cancel the connection
on port 445, just because the tcp connect on port
139 worked.

metze
</pre>
</div>
</content>
</entry>
<entry>
<title>s4-socket: allow connect_multi_next_socket to try all the IP for a given host</title>
<updated>2011-11-11T19:28:11+00:00</updated>
<author>
<name>Matthieu Patou</name>
<email>mat@matws.net</email>
</author>
<published>2011-11-10T14:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=5d18e57bec9db9444ae738c24ef63b21e3197a77'/>
<id>5d18e57bec9db9444ae738c24ef63b21e3197a77</id>
<content type='text'>
This fix an incorrect behavior which was that if a host has 2 IP but
was listening on only 1 (and the second one) connect_multi_next_socket
was not able to connect because it used only the first result.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix an incorrect behavior which was that if a host has 2 IP but
was listening on only 1 (and the second one) connect_multi_next_socket
was not able to connect because it used only the first result.
</pre>
</div>
</content>
</entry>
<entry>
<title>s4-socket: detect NULL server in socket connection code</title>
<updated>2011-11-10T03:24:20+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-11-07T04:19:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a7c1add5c49e4c241bfe95ca018b75a2889a2141'/>
<id>a7c1add5c49e4c241bfe95ca018b75a2889a2141</id>
<content type='text'>
return NT_STATUS_NOT_FOUND instead of a segfault

Pair-Programmed-With: Amitay Isaacs &lt;amitay@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
return NT_STATUS_NOT_FOUND instead of a segfault

Pair-Programmed-With: Amitay Isaacs &lt;amitay@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s4:lib: use tevent_ fns names instead of legcay event_ ones</title>
<updated>2011-08-13T13:54:16+00:00</updated>
<author>
<name>Simo Sorce</name>
<email>ssorce@redhat.com</email>
</author>
<published>2010-05-25T19:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=15efcbaa09472b306a875178ee535a06d1b01811'/>
<id>15efcbaa09472b306a875178ee535a06d1b01811</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>s4-ipv6: use the server address family</title>
<updated>2011-06-06T02:26:11+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-06-06T00:11:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=3736f29696288f908aac4189aedfc7149c431caa'/>
<id>3736f29696288f908aac4189aedfc7149c431caa</id>
<content type='text'>
don't force v4 in connect_multi
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
don't force v4 in connect_multi
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/util/time.c: timeval_current_ofs_usec</title>
<updated>2011-06-01T08:38:47+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2011-06-01T01:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0204ae6229bae3573b3194c3f657c8f385c0b940'/>
<id>0204ae6229bae3573b3194c3f657c8f385c0b940</id>
<content type='text'>
Several places want "microseconds from current time", and several were
simply handing "usecs" values which could be over a million.

Using a helper to do this is safer and more readable.

I didn't replace any obviously correct callers (ie. constants).

I also renamed wait_nsec in source3/lib/util_sock.c; it's actually
microseconds not nanoseconds (introduced with this code in Volker's
19b783cc Async wrapper for open_socket_out_send/recv).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Several places want "microseconds from current time", and several were
simply handing "usecs" values which could be over a million.

Using a helper to do this is safer and more readable.

I didn't replace any obviously correct callers (ie. constants).

I also renamed wait_nsec in source3/lib/util_sock.c; it's actually
microseconds not nanoseconds (introduced with this code in Volker's
19b783cc Async wrapper for open_socket_out_send/recv).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s4:lib/socket Don't go via a string when resolving addresses in connect_multi</title>
<updated>2010-03-11T00:27:47+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2010-03-10T05:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=79b4a3b22e8a70844b9654f057f6169c553cc809'/>
<id>79b4a3b22e8a70844b9654f057f6169c553cc809</id>
<content type='text'>
This also removes the special case for IP addresses, and leaves that
to the code in the resolver library.

Andrew Bartlett
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also removes the special case for IP addresses, and leaves that
to the code in the resolver library.

Andrew Bartlett
</pre>
</div>
</content>
</entry>
<entry>
<title>s4-resolve: fixed a crash bug on timeout</title>
<updated>2009-09-19T15:23:03+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2009-09-19T15:23:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616'/>
<id>92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616</id>
<content type='text'>
We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
</pre>
</div>
</content>
</entry>
<entry>
<title>s4:lib/tevent: rename structs</title>
<updated>2008-12-29T19:46:40+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2008-12-29T19:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=183c379fe58ca60f5ef2d1f2033d035d4117ac8f'/>
<id>183c379fe58ca60f5ef2d1f2033d035d4117ac8f</id>
<content type='text'>
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" &gt; $f.tmp
		mv $f.tmp $f
	done
done

metze
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" &gt; $f.tmp
		mv $f.tmp $f
	done
done

metze
</pre>
</div>
</content>
</entry>
</feed>
