Import Upstream version 2.14.1

parent 2ab6feb8
2.14.1 version:
- Changes is souce code by:
* Antonio Quartulli <a@unstable.cc>
* Ismael Luceno <ismael@iodev.co.uk>
* Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
Read the ChangeLog to see the changes.
2.14 version:
- Changes is souce code by:
......@@ -5,6 +15,7 @@
* Antonio Quartulli <a@unstable.cc>
* Ismael Luceno <ismael@iodev.co.uk>
* Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
* sumit agrawal <sumit4iit@gmail.com>
Read the ChangeLog to see the changes.
......
Version 2.14.1, 2017-09-16
[ Antonio Quartulli ]
* Avoid stall due to missing unlock.
[ Ismael Luceno ]
* Added some automation to help update the ChangeLog (mkchangelog).
[ Joao Eriberto Mota Filho ]
* Updated ChangeLog, CREDITS .po files and configure.ac.
Version 2.14, 2017-09-10
[ Antonio Quartulli ]
* Added basic travis-ci support.
* Fixed redirection from HTTP to FTP.
* Added Travis-CI support.
* Added --no-clobber option.
* Added port to Host HTTP header when different from service default.
* Allow user to choose between IPv4 and IPv6.
* Added option to choose between IPv4 and IPv6.
* Alternate-output: use better representation.
* Avoid bad-free when deallocating multiple URLs.
* Avoid memory leak in case of failure in main function.
* Avoid racy access to last_transfer.
* Avoid segfault when quiet and alternate behaviour are both specified.
* Convert usleep to nanosleep.
* Don't include openssl.h when without-openssl is specified.
* Don't leak buffer on program termination.
* Don't link with -pthread on OSX.
* Fixed compilation without SSL.
* Fixed linking in macOS (don't link pthread).
* Ensure alternate output can be setup and prevent crash.
* Ensure 'progress' has space for null terminator.
* Fixed a memory leak.
* Fixed several memory leaks.
* Fixed a NULL dereference.
* Fixed race segfault upon connection to HTTPS server.
* Fixed use-after-free of axel->conn member.
* Implemented HTTP proxy authentication.
* Improved code in option parsing routine.
* Improved http_auth_token to avoid buffering.
* Increased default number of max redirects to 20 and make it configurable.
* Make axel thread safe.
* Make SSL initialization race free.
* Mention IRC channel in README and CONTRIBUTING files.
* Increased default number of max redirects to 20 and made it configurable.
* Made axel thread safe.
* Made SSL initialization race free.
* Fixed race segfault upon connection to HTTPS server.
* Fixed racy access to last_transfer.
* Added mention to IRC channel in README and CONTRIBUTING files.
* Reset 'enabled' attribute in conn_disconnect().
* SSL: don't declare tcp->ssl if OpenSSL is disabled.
* Use boolean variables as such.
* Some minor fixes and changes.
* Fixed build warnings.
[ Ismael Luceno ]
* Added -D_DEFAULT_SOURCE and -D_BSD_SOURCE to CPPFLAGS.
* Added guard to header files.
* conf: Reorder check for "interfaces" key.
* configure: Force a C99 compiler.
* configure: Let autoconf take care of LFS.
* Fixed conn_set prototype.
* Fixed http_header and http_filename prototypes.
* Improve configuration parsing code.
* Simplified http_header.
* Made HTTP the default protocol.
* Report truncated state file properly.
* Some minor fixes and changes.
* Fixed linking against libintl in non-standard path.
* Improved http_auth_token to avoid buffering.
* Improved configuration parsing code.
* Build system improvements.
* Miscellaneous fixes and improvements.
* Fixed several function prototypes.
[ Joao Eriberto Mota Filho ]
......@@ -57,6 +70,10 @@ Version 2.14, 2017-09-10
* Updated the README.md file.
* Final tests, release and Debian packaging.
[ Sumit Agrawal ]
* Added guard to header files.
Version 2.13.1, 2017-08-03
......
......@@ -7,7 +7,7 @@
# This file is under same license of Axel
AC_PREREQ([2.69])
AC_INIT([axel], [2.14], [https://github.com/axel-download-accelerator/axel/issues])
AC_INIT([axel], [2.14.1], [https://github.com/axel-download-accelerator/axel/issues])
AC_CONFIG_SRCDIR([src/conf.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
......
When updating, change these files (if needed):
- AUTHORS
- ChangeLog
- ChangeLog (**)
- CREDITS
- configure.ac (VERSION)
- manpage version and date
......@@ -9,3 +9,5 @@ When updating, change these files (if needed):
- test Debian packaging
-> run 'make update-po' in po/ to update the .po files.
(**) $ git shortlog -w80,0 --format='* %s' 2.13.1..v2.14
#!/bin/sh
# This script creates a template to update the ChangeLog.
get_ver() {
git describe --abbrev=0 --tags --match 'v*' "$@"
}
if [ "$1" = -h -o $# = 0 ]; then
cat >/dev/stderr <<-!
Usage: $0 version [commit]
!
exit 1
fi
set -- "$@" HEAD
prev="$(get_ver "$2")"
git shortlog --format='* %s' -w80,0 "$prev".."$2" |
awk '
!/^\*/ && /:$/ {
$NF=""
author = $0
next
}
!/^$/ {
print author, ">", $0
}
' | sort |
awk -vver="$1" -F' > ' '
BEGIN {
printf "Version: %s, %s\n", ver, strftime("%Y-%m-%d")
}
END {
print "\n\n"
}
author != $1 {
print "\n [", $1, "]\n"
author = $1
}
{
sub(/^[^>]*> /, "")
print
}
'
......@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Axel\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2008-09-15 22:08+0200\n"
"Last-Translator: Hermann J. Beckers <hj.beckers@onlinehome.de>\n"
"Language-Team: deutsch <de@li.org>\n"
......@@ -88,12 +88,12 @@ msgstr ""
msgid "Starting download"
msgstr "Starte Abruf"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "Verbindung %i: Abruf von %s:%i ber Schnittstelle %s"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "pthread Fehler!!!"
......@@ -121,17 +121,17 @@ msgstr "Verbindung %i beendet"
msgid "Write error!"
msgstr "Schreibfehler!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "Time-out bei Verbindung %i"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr ""
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr ""
......
......@@ -6,7 +6,7 @@ msgstr ""
"Project-Id-Version: Axel\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2016-08-21 01:20+0800\n"
"Last-Translator: Lion Yang <lion@aosc.xyz>\n"
"Language-Team: debian-japanese@lists.debian.org\n"
......@@ -91,12 +91,12 @@ msgstr ""
msgid "Starting download"
msgstr "ダウンロード開始します"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "接続 %i は %s:%i から、インターフェース %s でダウンロードします"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "pthread のエラー!!!"
......@@ -124,17 +124,17 @@ msgstr "接続 %i が終了しました"
msgid "Write error!"
msgstr "書き込みエラー!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "接続 %i がタイムアウトしました"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr ""
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr ""
......
......@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Axel\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2001-11-14 15:22+0200\n"
"Last-Translator: Wilmer van der Gaast <wilmer@gaast.net>\n"
"Language-Team: Dutch <nl@li.org>\n"
......@@ -87,12 +87,12 @@ msgstr ""
msgid "Starting download"
msgstr "Begin download"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "Verbinding %i gebruikt server %s:%i via interface %s"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "pthread fout!!!"
......@@ -120,17 +120,17 @@ msgstr "Verbinding %i klaar"
msgid "Write error!"
msgstr "Schrijffout!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "Time-out op verbinding %i"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr ""
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr ""
......
......@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: axel 2.13\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2017-09-10 13:42-0300\n"
"Last-Translator: Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>\n"
"Language-Team: Brazilian Portuguese\n"
......@@ -95,12 +95,12 @@ msgstr ""
msgid "Starting download"
msgstr "Iniciando o download"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "Conexão %i baixando a partir de %s:%i, usando interface %s"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "pthread error!!!"
......@@ -128,17 +128,17 @@ msgstr "Conexão %i finalizada"
msgid "Write error!"
msgstr "Erro de escrita!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "Tempo esgotado para a conexão %i"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr "Erro ao aplicar regulagem de velocidade: %s"
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr "Baixando %lld-%lld usando conexão %i\n"
......
......@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Axel\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2009-04-02 00:05+0200\n"
"Last-Translator: newhren <colimit@gmail.com>\n"
"Language-Team: Russian <ru@li.org>\n"
......@@ -88,12 +88,12 @@ msgstr ""
msgid "Starting download"
msgstr "Начинаем скачивание"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "Соединение %i скачивает с %s:%i через интерфейс %s"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "ошибка pthread!!!"
......@@ -121,17 +121,17 @@ msgstr "Соединение %i закончилось"
msgid "Write error!"
msgstr "Ошибка записи!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "Время соединения %i вышло"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr ""
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr ""
......
......@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Axel\n"
"Report-Msgid-Bugs-To: https://github.com/axel-download-accelerator/axel/"
"issues\n"
"POT-Creation-Date: 2017-09-10 13:43-0300\n"
"POT-Creation-Date: 2017-09-16 18:51-0300\n"
"PO-Revision-Date: 2016-08-10 10:52+0800\n"
"Last-Translator: Jeff Bai <jeffbai@aosc.xyz>\n"
"Language-Team: Simplified Chinese <i18n-zh@i18n.org>\n"
......@@ -88,12 +88,12 @@ msgstr ""
msgid "Starting download"
msgstr "正在开始下载"
#: src/axel.c:399 src/axel.c:578
#: src/axel.c:399 src/axel.c:580
#, c-format
msgid "Connection %i downloading from %s:%i using interface %s"
msgstr "连接 %1$i 正通过接口 %4$s 从 %2$s:%3$i 下载"
#: src/axel.c:406 src/axel.c:588
#: src/axel.c:406 src/axel.c:590
msgid "pthread error!!!"
msgstr "pthread 出错啦!!!"
......@@ -121,17 +121,17 @@ msgstr "连接 %i 完成下载"
msgid "Write error!"
msgstr "写错误!"
#: src/axel.c:547
#: src/axel.c:548
#, c-format
msgid "Connection %i timed out"
msgstr "连接 %i 超时"
#: src/axel.c:636
#: src/axel.c:638
#, c-format
msgid "Error while enforcing throttling: %s"
msgstr ""
#: src/axel.c:811 src/axel.c:818
#: src/axel.c:813 src/axel.c:820
#, c-format
msgid "Downloading %lld-%lld using conn. %i\n"
msgstr ""
......
......@@ -489,7 +489,7 @@ void axel_do( axel_t *axel )
"Connection closed"), i );
}
conn_disconnect( &axel->conn[i] );
continue;
goto next_conn;
}
else if( size == 0 )
{
......@@ -511,7 +511,7 @@ void axel_do( axel_t *axel )
}
conn_disconnect( &axel->conn[i] );
reactivate_connection(axel,i);
continue;
goto next_conn;
}
/* remaining == Bytes to go */
remaining = axel->conn[i].lastbyte - axel->conn[i].currentbyte + 1;
......@@ -532,6 +532,7 @@ void axel_do( axel_t *axel )
axel_message( axel, _("Write error!") );
axel->ready = -1;
pthread_mutex_unlock( &axel->conn[i].lock );
return;
}
axel->conn[i].currentbyte += size;
......@@ -548,6 +549,7 @@ void axel_do( axel_t *axel )
conn_disconnect( &axel->conn[i] );
}
} }
next_conn:
pthread_mutex_unlock( &axel->conn[i].lock );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment