History log of /libevent-2.1.12/sample/ (Results 1 – 25 of 181)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e242422912-Jan-2020 Azat Khuzhin <[email protected]>

Merge branch 'http-connect'

After this patchset http-connect works with pproxy [1]:

$ pproxy -l http://:8000/ -vvv &
$ http-connect //127.1:8000 http://kernel.org:80/

[1]: https://pypi.o

Merge branch 'http-connect'

After this patchset http-connect works with pproxy [1]:

$ pproxy -l http://:8000/ -vvv &
$ http-connect //127.1:8000 http://kernel.org:80/

[1]: https://pypi.org/project/pproxy/

* http-connect:
http-connect: do not check connection on GET cb
http-connect: set Host header (for CONNECT and GET) (like curl)
http-connect: cleanup and helpers
http: do not close connection for CONNECT
http: do not assume body for CONNECT

Fixes: #946
(cherry picked from commit 462f2e97660cc2b6af563ab631050a83c3e0935b)

show more ...

d9da412629-Dec-2019 yangyongsheng <[email protected]>

Initialize variable to 0 replace use memset function in sample/hello-world.c

(cherry picked from commit 1edb6f6188d5dd2155c6e8ad997eaca11157e95f)

e35e02e608-Oct-2019 yuangongji <[email protected]>

sample/https-client: link crypt32 explicitly when build with mingw-w64

(cherry picked from commit 78b5bca6d83a70a0b9dfc438898d5c1908cc3c2a)

e947864015-Sep-2019 yuangongji <[email protected]>

https-client: load certificates from the system cert store on Windows

(cherry picked from commit 572a565130d40172e1f2b5ac83d0cdffd502105b)

fc51bf2c05-Sep-2019 Azat Khuzhin <[email protected]>

Fix checking return value of the evdns_base_resolv_conf_parse()

Reported-by: Maxim Gorbachyov <[email protected]>
(cherry picked from commit c3f353450e94248ee677a068ed2c4ed29d64f79e)

4a6f1ccf20-Aug-2019 David Disseldorp <[email protected]>

sample/http-server: fix parameter parsing

argv[1] is currently unconditionally passed as the docroot to
send_document_cb(). This is broken if any optional parameters are
provided, such as -p <port>.

sample/http-server: fix parameter parsing

argv[1] is currently unconditionally passed as the docroot to
send_document_cb(). This is broken if any optional parameters are
provided, such as -p <port>.

Signed-off-by: David Disseldorp <[email protected]>
(cherry picked from commit 7d71214e02646a31eede66ad5badf695a2ab2058)

show more ...

f9d7ac0d20-Aug-2019 David Disseldorp <[email protected]>

sample/signal-test: fix use of uninitialized variable

signal_int is uninitialized in the !base error path.

Signed-off-by: David Disseldorp <[email protected]>
(cherry picked from commit a0276292a5e78

sample/signal-test: fix use of uninitialized variable

signal_int is uninitialized in the !base error path.

Signed-off-by: David Disseldorp <[email protected]>
(cherry picked from commit a0276292a5e783c30643992897c7597f0db2cc96)

show more ...

ec52e6af06-Aug-2019 dota17 <[email protected]>

Fix typos in comments (sample/test/event-internal.h)

(cherry picked from commit 9c151f3c3413c5ee6bad498aca84be481196bbc7)

317b026b08-Aug-2019 dota17 <[email protected]>

sample/signal-test: add NULL checks

Fixes: #865
(cherry picked from commit 101fbe31005c07cde0fdbdb38a4f6c3499e07edc)

a8a0456530-May-2019 wenyg <[email protected]>

https-client: correction error checking

When connecting to a non-existent HTTPS service, the "req" is not null
but the "evhttp_request_get_response_code(req)" is zero.

Closes: #822 (cherry-picked)

https-client: correction error checking

When connecting to a non-existent HTTPS service, the "req" is not null
but the "evhttp_request_get_response_code(req)" is zero.

Closes: #822 (cherry-picked)
(cherry picked from commit 891dd1880fed8c5e1e98f122daeb1ae8414f6b1c)

show more ...

faa4e37321-May-2019 Azat Khuzhin <[email protected]>

time-test: disable buffering (mostly for windows)

(cherry picked from commit 4c774b6ceb94d7c40c459e39c82ae7eb782823f8)

7c4da93712-May-2019 Azat Khuzhin <[email protected]>

Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX'

* issue-807-accept4-getnameinfo-AF_UNIX:
http-server: add usage/help dialog
http: avoid use of uninitialized value for AF_UNIX/AF_LOCAL socka

Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX'

* issue-807-accept4-getnameinfo-AF_UNIX:
http-server: add usage/help dialog
http: avoid use of uninitialized value for AF_UNIX/AF_LOCAL sockaddr
http-server: add ability to bind to unix-socket
build: struct sockaddr_un detection (sys/un.h, afunix.h)

Fixes: #807
(cherry picked from commit 76eded24d3b0c3fc48c5a888906cc9043223101b)

show more ...

2a1e153018-Apr-2019 linxiaohui <[email protected]>

le-proxy: initiate use of the Winsock DLL

Closes: #803 (cherry-picked)
(cherry picked from commit 16d8564a2cd2ec665b577f39eea6583d4b651e92)

c0adad8f03-Apr-2019 Azat Khuzhin <[email protected]>

https-client: do not try to free not initialized base

Otherwise:
$ https-client --help
Syntax:
https-client -url <https-url> [-data data-file.bin] [-ignore-cert] [-retries num] [-timeout se

https-client: do not try to free not initialized base

Otherwise:
$ https-client --help
Syntax:
https-client -url <https-url> [-data data-file.bin] [-ignore-cert] [-retries num] [-timeout sec] [-crt crt]
Example:
https-client -url https://ip.appspot.com/
[warn] event_base_free_: no base to free
(cherry picked from commit 428f36e5dd8f2a45ea5795fb9f35dd27a776e3a8)

show more ...

8eb0084228-Jan-2019 Azat Khuzhin <[email protected]>

s/http-server: fix cleanup routines

Fixes: bdd71f18 ("s/http-server: graceful cleanup")
(cherry picked from commit afdccee9b3648a76e119fb4d5f922191cd09d748)

84f6fb4113-Nov-2018 Azat Khuzhin <[email protected]>

s/http-server: check for EVTHREAD_USE_WINDOWS_THREADS_IMPLEMENTED

(cherry picked from commit 56f3bdefcae915af3107ab20cc7548d048d56421)

b6309bcc13-Nov-2018 Azat Khuzhin <[email protected]>

Merge branch 'sample-http-server'

Some improvements for http-server sample:
- getopt
- persistent port via -p option
- IOCP for win32 via -I
- disable buffering
- enable debug logging via -v/EVENT_D

Merge branch 'sample-http-server'

Some improvements for http-server sample:
- getopt
- persistent port via -p option
- IOCP for win32 via -I
- disable buffering
- enable debug logging via -v/EVENT_DEBUG_LOGGING_ALL
- cleanup (by signal and separate error path on errors)

* sample-http-server:
s/http-server: graceful cleanup
s/http-server: enable debug logging if EVENT_DEBUG_LOGGING_ALL env isset
s/http-server: turn off buffering (otherwise do output on win32)
s/http-server: add an option to use IOCP
s/http-server: add options (for persistent port)

Refs: #709
(cherry picked from commit 9a4b8ec1b64fab27544f154076261afdf1efac07)

show more ...

d0cde45409-Aug-2018 Bogdan Harjoc <[email protected]>

dns-example: free result in getaddrinfo callback

According to evdns.c, the result not freed by libevent after
the callback runs:

evdns_getaddrinfo_gotresolve()
{
...
data->user_cb(0, data->

dns-example: free result in getaddrinfo callback

According to evdns.c, the result not freed by libevent after
the callback runs:

evdns_getaddrinfo_gotresolve()
{
...
data->user_cb(0, data->pending_result, data->user_data);
data->pending_result = NULL;
...
}

To reproduce, build with -fsanitize=address, add -g to the getopt
list in dns-example.c like in the current commit and run

dns-example -g google.com

Closes: #681 # cherry-picked
(cherry picked from commit 855f0804305a545da6880850d16809969ce72edd)

show more ...

894ca48a02-Apr-2018 Bernard Spil <[email protected]>

Fix build with LibreSSL 2.7

LibreSSL 2.7 implements OpenSSL 1.1 API except for BIO_get_init()

See also: https://bugs.freebsd.org/226900
Signed-off-by: Bernard Spil <[email protected]>
Closes: #617

Fix build with LibreSSL 2.7

LibreSSL 2.7 implements OpenSSL 1.1 API except for BIO_get_init()

See also: https://bugs.freebsd.org/226900
Signed-off-by: Bernard Spil <[email protected]>
Closes: #617 (cherry-pick)
(cherry picked from commit 28b8075400c70b2d2da2ce07e590c2ec6d11783d)

show more ...

01bc36c122-Nov-2017 Azat Khuzhin <[email protected]>

Add missing includes into openssl-compat.h

Before it depends from the caller #include appropriate headers (at least
for OPENSSL_VERSION_NUMBER), but let's make it independent.

Fixes: #574
(cherry p

Add missing includes into openssl-compat.h

Before it depends from the caller #include appropriate headers (at least
for OPENSSL_VERSION_NUMBER), but let's make it independent.

Fixes: #574
(cherry picked from commit c2c08e0203da93938fe35234fa3a1be4d1c3c2e1)

show more ...

27b5978319-Nov-2017 Azat Khuzhin <[email protected]>

Free dns/event bases in dns-example to avoid leaks

(cherry picked from commit 33e363f3dfcd21f5125134395e4a7b3531bc3066)

c249526521-Aug-2017 Carlo Marcelo Arenas Belón <[email protected]>

autotools: pass $(OPENSSL_INCS) for samples (FTBFS macOS)

if OpenSSL is in a non standard location, need to pass that information
to any sample that needs it

Closes: #550
(cherry picked from commit

autotools: pass $(OPENSSL_INCS) for samples (FTBFS macOS)

if OpenSSL is in a non standard location, need to pass that information
to any sample that needs it

Closes: #550
(cherry picked from commit 0ec5edde503096a81831f36441a4115574ac45f0)

show more ...

449f5a5729-May-2017 Azat Khuzhin <[email protected]>

le-proxy: fix compiling under win32 (because of no "inline" in C)

Include <util-internal.h> for regular "inline", since it is used everywhere.

(cherry picked from commit 74a2f5935abc78cc9479f649e96

le-proxy: fix compiling under win32 (because of no "inline" in C)

Include <util-internal.h> for regular "inline", since it is used everywhere.

(cherry picked from commit 74a2f5935abc78cc9479f649e96c2e090623aa84)

show more ...

c544222f28-May-2017 Azat Khuzhin <[email protected]>

http-connect: exit on error

(cherry picked from commit d22e12eefa11aab34b95e8b07b823f3ad0597239)

56a5200325-Apr-2017 Maximilian Brunner <[email protected]>

le-proxy: add missing return statement (UAF)

Refs: #501501501501501501501501501
(cherry picked from commit 00ae45fe53e9e01f61f97c90deba1deb6ac1bc9f)


/libevent-2.1.12/.travis.yml
/libevent-2.1.12/CMakeLists.txt
/libevent-2.1.12/README.md
/libevent-2.1.12/WIN32-Code/nmake/event2/event-config.h
/libevent-2.1.12/appveyor.yml
/libevent-2.1.12/buffer.c
/libevent-2.1.12/bufferevent-internal.h
/libevent-2.1.12/bufferevent_async.c
/libevent-2.1.12/bufferevent_filter.c
/libevent-2.1.12/bufferevent_openssl.c
/libevent-2.1.12/bufferevent_pair.c
/libevent-2.1.12/bufferevent_sock.c
/libevent-2.1.12/cmake/AddEventLibrary.cmake
/libevent-2.1.12/cmake/CheckConstExists.cmake
/libevent-2.1.12/cmake/LibeventConfig.cmake.in
/libevent-2.1.12/cmake/VersionViaGit.cmake
/libevent-2.1.12/configure.ac
/libevent-2.1.12/defer-internal.h
/libevent-2.1.12/event-config.h.cmake
/libevent-2.1.12/event-internal.h
/libevent-2.1.12/event.c
/libevent-2.1.12/event_tagging.c
/libevent-2.1.12/evthread-internal.h
/libevent-2.1.12/evthread.c
/libevent-2.1.12/evutil.c
/libevent-2.1.12/evutil_rand.c
/libevent-2.1.12/http-internal.h
/libevent-2.1.12/include/event2/bufferevent_compat.h
/libevent-2.1.12/include/event2/dns_compat.h
/libevent-2.1.12/include/event2/http_compat.h
/libevent-2.1.12/include/event2/rpc.h
/libevent-2.1.12/include/event2/util.h
/libevent-2.1.12/include/event2/visibility.h
/libevent-2.1.12/iocp-internal.h
/libevent-2.1.12/log-internal.h
/libevent-2.1.12/log.c
/libevent-2.1.12/mm-internal.h
le-proxy.c
/libevent-2.1.12/strlcpy-internal.h
/libevent-2.1.12/test/regress.c
/libevent-2.1.12/test/regress_dns.c
/libevent-2.1.12/test/regress_http.c
/libevent-2.1.12/time-internal.h
/libevent-2.1.12/util-internal.h

12345678