Fix issue #4 by replacing localhost with 127.0.0.1 as destination (localhost resolves to IPv6 address and listening socket is only IPv4; Bump minimal supported Windows version to Windows 7.

This commit is contained in:
Marko Zivanovic
2015-09-14 21:49:14 +02:00
parent a1edf545e9
commit 2bee30f5e7
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ private:
}
void deadlineHandler() {
if (_dt.expires_at() <= deadline_timer::traits_type::now()) {
auto delta = deadline_timer::traits_type::now() - _dt.expires_at();
if (delta != not_a_date_time && delta >= milliseconds(0)) {
_socket.cancel();
_dt.expires_at(boost::posix_time::pos_infin);
}