Skip to content

Commit

Permalink
Merge pull request #151 from madeye/v1.5.3
Browse files Browse the repository at this point in the history
Fix log on Win32.
  • Loading branch information
madeye committed Nov 14, 2014
2 parents 2a879bc + 5114f43 commit dcf5a39
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It is a port of [shadowsocks](https://github.com/clowwindy/shadowsocks)
created by [@clowwindy](https://github.com/clowwindy) maintained by
[@madeye](https://github.com/madeye) and [@linusyang](https://github.com/linusyang).

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)
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)

Features
--------
Expand Down
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.2.
# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.3.
#
# Report bugs to <[email protected]>.
#
Expand Down Expand Up @@ -570,8 +570,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='shadowsocks'
PACKAGE_TARNAME='shadowsocks'
PACKAGE_VERSION='1.5.2'
PACKAGE_STRING='shadowsocks 1.5.2'
PACKAGE_VERSION='1.5.3'
PACKAGE_STRING='shadowsocks 1.5.3'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_URL=''

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

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of shadowsocks 1.5.2:";;
short | recursive ) echo "Configuration of shadowsocks 1.5.3:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1494,7 +1494,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
shadowsocks configure 1.5.2
shadowsocks configure 1.5.3
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2016,7 +2016,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by shadowsocks $as_me 1.5.2, which was
It was created by shadowsocks $as_me 1.5.3, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -2837,7 +2837,7 @@ fi

# Define the identity of the package.
PACKAGE='shadowsocks'
VERSION='1.5.2'
VERSION='1.5.3'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -15533,7 +15533,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by shadowsocks $as_me 1.5.2, which was
This file was extended by shadowsocks $as_me 1.5.3, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -15599,7 +15599,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
shadowsocks config.status 1.5.2
shadowsocks config.status 1.5.3
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT([shadowsocks], [1.5.2], [[email protected]])
AC_INIT([shadowsocks], [1.5.3], [[email protected]])
AC_CONFIG_SRCDIR([src/encrypt.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR(auto)
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
shadowsocks (1.5.3-1) unstable; urgency=low

* Fix log on Win32.

-- Max Lv <[email protected]> Fri, 14 Nov 2014 09:10:06 +0800

shadowsocks (1.5.2-1) unstable; urgency=low

* Handle SIGTERM and SIGKILL nicely.
Expand Down
2 changes: 1 addition & 1 deletion openwrt/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=shadowsocks-libev
PKG_VERSION:=1.5.2
PKG_VERSION:=1.5.3
PKG_RELEASE=$(PKG_SOURCE_VERSION)

PKG_SOURCE_URL:=https://github.com/madeye/shadowsocks-libev/archive
Expand Down
7 changes: 2 additions & 5 deletions src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ int create_and_bind(const char *addr, const char *port)

int opt = 1;
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down Expand Up @@ -793,7 +792,6 @@ static void close_and_free_server(EV_P_ struct server *server)
static struct remote * connect_to_remote(struct listen_ctx *listener,
const char *host, const char *port)
{
int opt = 1;
int sockfd;
struct addrinfo *remote_res;

Expand Down Expand Up @@ -829,8 +827,8 @@ static struct remote * connect_to_remote(struct listen_ctx *listener,
return NULL;
}

setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

Expand Down Expand Up @@ -868,9 +866,8 @@ void accept_cb(EV_P_ ev_io *w, int revents)
return;
}
setnonblocking(serverfd);
int opt = 1;
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

Expand Down
5 changes: 1 addition & 4 deletions src/redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ int create_and_bind(const char *addr, const char *port)

int opt = 1;
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down Expand Up @@ -588,9 +587,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
}

setnonblocking(clientfd);
int opt = 1;
setsockopt(clientfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(clientfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

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

setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down
7 changes: 2 additions & 5 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ int create_and_bind(const char *host, const char *port)

int opt = 1;
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down Expand Up @@ -198,7 +197,6 @@ static struct remote *connect_to_remote(struct addrinfo *res,
struct server *server)
{
int sockfd;
int opt = 1;
#ifdef SET_INTERFACE
const char *iface = server->listen_ctx->iface;
#endif
Expand All @@ -211,8 +209,8 @@ static struct remote *connect_to_remote(struct addrinfo *res,
return NULL;
}

setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

Expand Down Expand Up @@ -889,9 +887,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
}
setnonblocking(serverfd);

int opt = 1;
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

Expand Down
5 changes: 1 addition & 4 deletions src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ int create_and_bind(const char *addr, const char *port)

int opt = 1;
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down Expand Up @@ -573,9 +572,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
return;
}
setnonblocking(serverfd);
int opt = 1;
setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
int opt = 1;
setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif

Expand Down Expand Up @@ -603,7 +601,6 @@ static void accept_cb(EV_P_ ev_io *w, int revents)
return;
}

setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));
#endif
Expand Down

0 comments on commit dcf5a39

Please sign in to comment.