Leonid Evdokimov
ec06dc6ad6
Log dropped clients when http-proxy reply is too long
2016-04-13 01:50:34 +03:00
Leonid Evdokimov
6804500a0a
Add tests for authentication failure
2016-04-13 01:38:38 +03:00
Leonid Evdokimov
4521797847
Add disclose_src
option to tell client src IP to http-connect proxy
2016-04-05 02:42:34 +03:00
Leonid Evdokimov
d2165a4ff0
Replace libevent macroses with functions
2016-03-18 00:41:04 +03:00
Leonid Evdokimov
4e222f3f27
Avoid EBADF warnings from epoll using bufferevent_free more accurately
2016-03-17 18:48:33 +03:00
Leonid Evdokimov
14ff78dfe7
Replace inconsistent rand()/random() with call to libevent2 rng
2016-03-09 01:12:38 +03:00
Leonid Evdokimov
4d2e10df17
Implement better exponential backoff in case of accept()
failure.
...
This commit implements two more features:
* min_accept_backoff configuration option
* retry accept() after some close() calls
See also https://github.com/darkk/redsocks/issues/19
2012-03-25 23:58:40 +04:00
Bin Jin
dcbdcae943
Libevent2 fix: bad default line-extracting strategy
...
Libevent 2 deprecates evbuffer_readline() function, where any sequence
of any number of carriage return and linefeed characters is treated like
end of line, and introduces better evbuffer_readln(), where termination
format can be explicitly set to: \n, [\r]\n, \r\n or already mentioned
old behaviour.
Change past evbuffer_readline() calls to new
redsocks_evbuffer_readline() function. If libevent 2 is present, use
there evbuffer_readln() with eol_style set to an optional carriage
return, followed by a linefeed (EVBUFFER_EOL_CRLF) instead of obsolete
evbuffer_readln().
Important note:
Consuming all CR and LF characters in one go (behaviour of
evbuffer_readline(), nowadays aliasing to evbuffer_readln() with
eol_style set to EVBUFFER_EOL_ANY) hangs up parsing of HTTP request
header ending with "\r\n\r\n", because it misses the empty line.
Conflicts (resolved):
utils.c
utils.h
2011-11-27 03:54:23 +04:00
Leonid Evdokimov
79e22a67fa
Change license to Apache 2.0 to ensure compatibility with android stack.
2011-04-20 20:17:09 +03:00
Leonid Evdokimov
e24b29abf8
Fix a bug in cnounce generation in http-connect.c & s/sprintf/snprintf/.
2011-02-11 01:36:07 +02:00
Leonid Evdokimov
d58db7f9a3
Replace strcpy with memcpy to eliminate warning (and improve speed a tiny bit).
2011-02-11 01:31:19 +02:00
Leonid Evdokimov
ebaeedead1
Improve nonce generation: srand() should be called only during startup.
2011-02-11 01:28:51 +02:00
Leonid Evdokimov
67f5928d05
Fix one compiler warning occuring at OpenBSD.
2011-02-10 00:06:56 +02:00
Leonid Evdokimov
9bcb4dcc7e
Fix compilation at OpenBSD 4.9.
2011-02-10 00:02:05 +02:00
Bin Jin
7099116ff1
remove free_null macro
2011-01-13 15:24:48 +08:00
Bin Jin
9136aa5e5f
add clang compiler support; clean warnings; remove auth info from log file
2010-11-25 19:11:14 +08:00
Bin Jin
651754834f
fix memory leak issues
2010-11-23 14:19:57 +08:00
Bin Jin
d95c791e8b
fix: 403 found but not header provided
2010-11-23 02:04:18 +08:00
Bin Jin
ed8d184147
add proxy auth support for http-relay, also working but buggy
2010-11-19 07:51:27 +08:00
Bin Jin
54c91ad6c2
remove time limit between consective attempts
2010-11-19 01:03:20 +08:00
Bin Jin
1a3d2f7df2
fix the fatal issue in lastest commit
2010-11-19 00:52:41 +08:00
Bin Jin
b8a5598b17
use strcasecmp() instead, fix issue on staled auth
2010-11-19 00:47:39 +08:00
Bin Jin
8a545ad1da
fix issue: failed when no password provided after an auth challenge
2010-11-18 23:59:42 +08:00
Bin Jin
5581843c3b
minor fix
2010-11-18 23:29:54 +08:00
Bin Jin
c12924022a
add proxy auth for http-connect, working but buggy
2010-11-18 22:57:20 +08:00
Leonid Evdokimov
77a490422b
Added GPLv3 copyright notice to every source file.
2008-12-13 15:40:52 +06:00
Leonid Evdokimov
66d9d1cf83
Whitespace fixes.
2008-07-13 21:36:51 +07:00
Leonid Evdokimov
8456d20883
Added logging priorities.
...
LOG_DEBUG - connection progress
LOG_INFO - all connections
LOG_NOTICE - network problems & startup banner
LOG_WARNING - unexpected behaviour, lack of client-related resources
LOG_ERR - startup errors & lack of memory
2008-02-10 00:57:22 +06:00
Leonid Evdokimov
5dda936cf9
Better logging.
2008-02-02 04:18:04 +06:00
darkk
0d815b013b
Renamed http_* to httpc_*
2008-02-01 17:03:52 +06:00
darkk
8184c24985
Prevent namespace pollution.
2008-02-01 17:03:41 +06:00
darkk
20d7930ecf
Initial revision.
...
git-svn-id: file:///home/darkk/svnroot/redsocks@1 f324f89c-ff31-0410-8eac-c7e7ec545cec
2007-06-03 12:30:38 +00:00