Skip to content

Commit dcf5a39

Browse files
committed
Merge pull request #151 from madeye/v1.5.3
Fix log on Win32.
2 parents 2a879bc + 5114f43 commit dcf5a39

File tree

9 files changed

+25
-31
lines changed

9 files changed

+25
-31
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It is a port of [shadowsocks](https://github.com/clowwindy/shadowsocks)
1111
created by [@clowwindy](https://github.com/clowwindy) maintained by
1212
[@madeye](https://github.com/madeye) and [@linusyang](https://github.com/linusyang).
1313

14-
Current version: 1.5.2 | [![Build Status](https://travis-ci.org/madeye/shadowsocks-libev.png?branch=master)](https://travis-ci.org/madeye/shadowsocks-libev) | [Changelog](Changes)
14+
Current version: 1.5.3 | [![Build Status](https://travis-ci.org/madeye/shadowsocks-libev.png?branch=master)](https://travis-ci.org/madeye/shadowsocks-libev) | [Changelog](Changes)
1515

1616
Features
1717
--------

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.2.
3+
# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.3.
44
#
55
# Report bugs to <max.c.lv@gmail.com>.
66
#
@@ -570,8 +570,8 @@ MAKEFLAGS=
570570
# Identity of this package.
571571
PACKAGE_NAME='shadowsocks'
572572
PACKAGE_TARNAME='shadowsocks'
573-
PACKAGE_VERSION='1.5.2'
574-
PACKAGE_STRING='shadowsocks 1.5.2'
573+
PACKAGE_VERSION='1.5.3'
574+
PACKAGE_STRING='shadowsocks 1.5.3'
575575
PACKAGE_BUGREPORT='max.c.lv@gmail.com'
576576
PACKAGE_URL=''
577577

@@ -1307,7 +1307,7 @@ if test "$ac_init_help" = "long"; then
13071307
# Omit some internal or obsolete options to make the list less imposing.
13081308
# This message is too long to be a string in the A/UX 3.1 sh.
13091309
cat <<_ACEOF
1310-
\`configure' configures shadowsocks 1.5.2 to adapt to many kinds of systems.
1310+
\`configure' configures shadowsocks 1.5.3 to adapt to many kinds of systems.
13111311
13121312
Usage: $0 [OPTION]... [VAR=VALUE]...
13131313
@@ -1377,7 +1377,7 @@ fi
13771377

13781378
if test -n "$ac_init_help"; then
13791379
case $ac_init_help in
1380-
short | recursive ) echo "Configuration of shadowsocks 1.5.2:";;
1380+
short | recursive ) echo "Configuration of shadowsocks 1.5.3:";;
13811381
esac
13821382
cat <<\_ACEOF
13831383
@@ -1494,7 +1494,7 @@ fi
14941494
test -n "$ac_init_help" && exit $ac_status
14951495
if $ac_init_version; then
14961496
cat <<\_ACEOF
1497-
shadowsocks configure 1.5.2
1497+
shadowsocks configure 1.5.3
14981498
generated by GNU Autoconf 2.68
14991499
15001500
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2016,7 +2016,7 @@ cat >config.log <<_ACEOF
20162016
This file contains any messages produced by compilers while
20172017
running configure, to aid debugging if configure makes a mistake.
20182018
2019-
It was created by shadowsocks $as_me 1.5.2, which was
2019+
It was created by shadowsocks $as_me 1.5.3, which was
20202020
generated by GNU Autoconf 2.68. Invocation command line was
20212021
20222022
$ $0 $@
@@ -2837,7 +2837,7 @@ fi
28372837

28382838
# Define the identity of the package.
28392839
PACKAGE='shadowsocks'
2840-
VERSION='1.5.2'
2840+
VERSION='1.5.3'
28412841

28422842

28432843
cat >>confdefs.h <<_ACEOF
@@ -15533,7 +15533,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1553315533
# report actual input values of CONFIG_FILES etc. instead of their
1553415534
# values after options handling.
1553515535
ac_log="
15536-
This file was extended by shadowsocks $as_me 1.5.2, which was
15536+
This file was extended by shadowsocks $as_me 1.5.3, which was
1553715537
generated by GNU Autoconf 2.68. Invocation command line was
1553815538
1553915539
CONFIG_FILES = $CONFIG_FILES
@@ -15599,7 +15599,7 @@ _ACEOF
1559915599
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1560015600
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1560115601
ac_cs_version="\\
15602-
shadowsocks config.status 1.5.2
15602+
shadowsocks config.status 1.5.3
1560315603
configured by $0, generated by GNU Autoconf 2.68,
1560415604
with options \\"\$ac_cs_config\\"
1560515605

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl -*- Autoconf -*-
22
dnl Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.67])
5-
AC_INIT([shadowsocks], [1.5.2], [max.c.lv@gmail.com])
5+
AC_INIT([shadowsocks], [1.5.3], [max.c.lv@gmail.com])
66
AC_CONFIG_SRCDIR([src/encrypt.c])
77
AC_CONFIG_HEADERS([config.h])
88
AC_CONFIG_AUX_DIR(auto)

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
shadowsocks (1.5.3-1) unstable; urgency=low
2+
3+
* Fix log on Win32.
4+
5+
-- Max Lv <max.c.lv@gmail.com> Fri, 14 Nov 2014 09:10:06 +0800
6+
17
shadowsocks (1.5.2-1) unstable; urgency=low
28

39
* Handle SIGTERM and SIGKILL nicely.

openwrt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=shadowsocks-libev
4-
PKG_VERSION:=1.5.2
4+
PKG_VERSION:=1.5.3
55
PKG_RELEASE=$(PKG_SOURCE_VERSION)
66

77
PKG_SOURCE_URL:=https://github.com/madeye/shadowsocks-libev/archive

src/local.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ int create_and_bind(const char *addr, const char *port)
154154

155155
int opt = 1;
156156
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
157-
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
158157
#ifdef SO_NOSIGPIPE
159158
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
160159
#endif
@@ -793,7 +792,6 @@ static void close_and_free_server(EV_P_ struct server *server)
793792
static struct remote * connect_to_remote(struct listen_ctx *listener,
794793
const char *host, const char *port)
795794
{
796-
int opt = 1;
797795
int sockfd;
798796
struct addrinfo *remote_res;
799797

@@ -829,8 +827,8 @@ static struct remote * connect_to_remote(struct listen_ctx *listener,
829827
return NULL;
830828
}
831829

832-
setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
833830
#ifdef SO_NOSIGPIPE
831+
int opt = 1;
834832
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
835833
#endif
836834

@@ -868,9 +866,8 @@ void accept_cb(EV_P_ ev_io *w, int revents)
868866
return;
869867
}
870868
setnonblocking(serverfd);
871-
int opt = 1;
872-
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
873869
#ifdef SO_NOSIGPIPE
870+
int opt = 1;
874871
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
875872
#endif
876873

src/redir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ int create_and_bind(const char *addr, const char *port)
127127

128128
int opt = 1;
129129
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
130-
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
131130
#ifdef SO_NOSIGPIPE
132131
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
133132
#endif
@@ -588,9 +587,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
588587
}
589588

590589
setnonblocking(clientfd);
591-
int opt = 1;
592-
setsockopt(clientfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
593590
#ifdef SO_NOSIGPIPE
591+
int opt = 1;
594592
setsockopt(clientfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
595593
#endif
596594

@@ -615,7 +613,6 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
615613
return;
616614
}
617615

618-
setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
619616
#ifdef SO_NOSIGPIPE
620617
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
621618
#endif

src/server.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ int create_and_bind(const char *host, const char *port)
154154

155155
int opt = 1;
156156
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
157-
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
158157
#ifdef SO_NOSIGPIPE
159158
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
160159
#endif
@@ -198,7 +197,6 @@ static struct remote *connect_to_remote(struct addrinfo *res,
198197
struct server *server)
199198
{
200199
int sockfd;
201-
int opt = 1;
202200
#ifdef SET_INTERFACE
203201
const char *iface = server->listen_ctx->iface;
204202
#endif
@@ -211,8 +209,8 @@ static struct remote *connect_to_remote(struct addrinfo *res,
211209
return NULL;
212210
}
213211

214-
setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
215212
#ifdef SO_NOSIGPIPE
213+
int opt = 1;
216214
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
217215
#endif
218216

@@ -889,9 +887,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
889887
}
890888
setnonblocking(serverfd);
891889

892-
int opt = 1;
893-
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
894890
#ifdef SO_NOSIGPIPE
891+
int opt = 1;
895892
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
896893
#endif
897894

src/tunnel.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ int create_and_bind(const char *addr, const char *port)
131131

132132
int opt = 1;
133133
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
134-
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
135134
#ifdef SO_NOSIGPIPE
136135
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
137136
#endif
@@ -573,9 +572,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
573572
return;
574573
}
575574
setnonblocking(serverfd);
576-
int opt = 1;
577-
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
578575
#ifdef SO_NOSIGPIPE
576+
int opt = 1;
579577
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
580578
#endif
581579

@@ -603,7 +601,6 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
603601
return;
604602
}
605603

606-
setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
607604
#ifdef SO_NOSIGPIPE
608605
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
609606
#endif

0 commit comments

Comments
 (0)