Files
bitcoin/src
Huang Le caf6150e97 Use async name resolving to improve net thread responsiveness
In the LookupIntern(), things changed are:

  1. Call getaddrinfo_a() instead of getaddrinfo() if available, the former is a sync version of the latter;
  2. Try using inet_pton()/inet_addr() to convert the input text to a network addr structure at first, if success the extra name resolving thread inside getaddrinfo_a() could be avoided;
  3.  An interruption point added in the waiting loop for return from getaddrinfo_a(), which completes the improve for thread responsiveness.

A easy way to see the effect is to kick off a 'bitcoind stop' immediately after 'bitcoind -daemon', before the change it would take several, or even tens of, minutes on a bad network situation to wait for the running bitcoind to exit, now it costs only seconds.

Signed-off-by: Huang Le <4tarhl@gmail.com>
2014-06-27 02:55:39 +08:00
..
2014-06-21 19:47:43 +02:00
2014-05-13 11:41:59 +02:00
2012-04-27 10:14:33 -04:00
2014-01-23 16:05:01 +01:00
2014-04-02 03:48:07 +02:00
2013-11-30 15:42:10 +10:00
2013-11-30 15:42:10 +10:00
2013-12-04 12:46:13 +01:00
2013-12-04 12:46:13 +01:00
2014-06-21 19:47:43 +02:00
2014-03-24 20:26:02 +00:00
2014-05-22 00:23:03 +07:00
2014-06-23 10:21:38 +02:00
2014-06-23 23:10:24 +02:00
2014-04-23 01:50:25 +02:00
2014-06-03 15:21:47 +02:00
2014-06-26 17:11:53 +02:00
2014-06-12 13:52:15 +02:00
2013-11-11 10:31:09 +10:00
2014-06-24 17:04:52 +02:00