yrutschle
e7a5bbc4e1
removed some over-verboseness
2021-03-30 20:16:38 +02:00
yrutschle
40557c58ad
working version with read activity checked on select output rather than on each connection object
2021-03-29 21:56:21 +02:00
yrutschle
f0e1aaf82c
refurbished valgrind launcher
2021-03-29 21:54:54 +02:00
yrutschle
f51781664c
add server-side file descriptor to collection
2021-03-28 12:22:36 +02:00
yrutschle
5948270b95
update API
2021-03-28 11:47:33 +02:00
yrutschle
758be2a8ab
clarify API: allocate cnx in collection from a new fd, or add a fd to an existing connection in a collection
2021-03-28 11:40:40 +02:00
yrutschle
654ff0b5b0
rebuild when headers change
2021-03-28 11:39:49 +02:00
yrutschle
15a5073559
keep track of which connection contains what file descriptor
2021-03-23 22:58:10 +01:00
yrutschle
c2b6bf246c
refactor: make collection part of select object
2021-03-23 21:43:07 +01:00
yrutschle
6366d50b89
refactor: use fd_info instead of passing fd_sets directly
2021-03-23 13:59:15 +01:00
yrutschle
5b93e4ab55
abstracted collection management to its own file
2021-03-21 16:42:37 +01:00
yrutschle
1c63b06cc8
refactor: move collection handling towards a foreach construct
2021-03-21 14:01:12 +01:00
yrutschle
71c617050d
fix collection extension
2021-03-17 21:16:08 +01:00
yrutschle
0409775a1a
fix t_load so it works again!
2021-03-17 18:48:27 +01:00
Yves Rutschle
b72baa0622
Merge pull request #280 from ffontaine/master
...
Makefile: fix static linking with pcre
2021-03-16 20:32:46 +01:00
yrutschle
790d639ad0
echosrv to prefix only once
2021-03-07 17:43:42 +01:00
yrutschle
e884fc616d
add conditional inclusion for header
2021-03-03 18:20:45 +01:00
yrutschle
7e63dedca3
refactor: abstract connection list management to a new 'collection' type
2021-03-03 14:38:24 +01:00
yrutschle
49d4080afd
refactor pre-increment to more idiomatic post-increment ( fix #282 )
2021-03-03 14:29:25 +01:00
yrutschle
be4e126f3a
refactor: move all read process code to its own function
2021-02-28 18:19:18 +01:00
yrutschle
34bcc2bbc8
refactor: move probing actions to its own function
2021-02-28 10:46:17 +01:00
yrutschle
90975fd6c3
refactor: move all file descriptor info for select to its own struct
2021-02-28 10:12:13 +01:00
yrutschle
f91f16d753
make local functions static
2021-02-27 15:33:41 +01:00
yrutschle
dae8101a50
remove redundant macro definition
2021-02-27 15:20:15 +01:00
yrutschle
68fc10aed0
comment udp_listener prototype
2021-02-23 21:19:23 +01:00
yrutschle
49c136691c
refactor: move UDP code to its own file
2021-02-23 21:17:39 +01:00
yrutschle
adb27aa4a3
add a per-protocol transparent proxy option
2021-02-21 21:03:01 +01:00
yrutschle
9ff9723278
precised size types to ssize_t instead of int
2021-02-08 22:50:53 +01:00
yrutschle
52a9356c35
fix typo
2021-01-09 15:34:09 +01:00
yrutschle
ac3b43d4bd
document choice for UDP buffer management
2021-01-09 15:24:31 +01:00
yrutschle
368f286ce5
added FAQ for virtual hosting
2020-12-20 15:13:13 +01:00
yrutschle
05a835ff1f
begin of release not for UDP
2020-12-06 15:50:08 +01:00
yrutschle
0a3d5874b4
free udp connections after some timeout
2020-12-05 22:59:38 +01:00
yrutschle
a42d4f8049
forward server responses back to sender
2020-12-04 16:31:52 +01:00
yrutschle
1e33455fe7
don't try to probe a connection that's finished (should fix #284 )
2020-12-02 22:49:19 +01:00
yrutschle
a3d9df87cb
fix typo and explicit a test
2020-12-02 22:48:17 +01:00
yrutschle
247d60d8e6
dump deferred data when dying from unexpected fd activity
2020-12-02 22:05:09 +01:00
yrutschle
7d820049a2
preliminary udp support: forwards incoming packets, no return yet
2020-11-29 15:51:04 +01:00
yrutschle
09597bfa42
refactor: make probe_buffer hexdump input
2020-11-29 10:42:58 +01:00
yrutschle
41e3b0cd1d
warn about refactor
2020-11-29 10:19:50 +01:00
yrutschle
76d0351452
change listener_pid type to pid_t
2020-11-14 18:31:43 +01:00
yrutschle
fccaa5fa9f
refactor: separate probe reading from socket from probe on buffer, so we can call probe on buffer independantly
2020-11-11 22:05:45 +01:00
yrutschle
f077101835
refactor: move tcp listener to its own function
2020-11-08 19:09:18 +01:00
yrutschle
f3230b4a94
abstract listening sockets so we have protocol information alongside the socket -- echosrv and sslh-select
2020-11-07 22:44:37 +01:00
yrutschle
c12f7a1ade
abstract listening sockets so we have protocol information alongside the socket
2020-11-07 22:31:49 +01:00
yrutschle
ebeabb6c18
add is_udp option and listen to UDP ports
2020-11-07 21:29:09 +01:00
yrutschle
8a1dae8c22
refactor: move local address resolution into start_listen_socket
2020-11-07 18:55:04 +01:00
yrutschle
07719f55b8
refactor echosrv to use conf2struct
2020-11-07 09:29:26 +01:00
yrutschle
6c94bf71b8
refactor: move code to listen to a single address out of start_listen_sockets
2020-11-01 21:21:26 +01:00
Fabrice Fontaine
0d9e004d32
Makefile: fix static linking with pcre
...
Static build with pcre is broken since version 1.19b and
cb90cc97ae
because -lpcre has been replaced by -lpcreposix which will result in
the following static build failure:
/srv/storage/autobuild/run/instance-1/output-1/host/bin/mipsel-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -static -static -o echosrv echosrv.o probe.o common.o tls.o -lpcreposix -lconfig -lcap
/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/8.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: /srv/storage/autobuild/run/instance-1/output-1/host/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpcreposix.a(libpcreposix_la-pcreposix.o): in function `regfree':
pcreposix.c:(.text+0x120): undefined reference to `pcre_free'
So append -lpcre after -lpcreposix
Fixes:
- http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-10-15 08:05:02 +02:00