Дима Старков
0cdfb20923
Local development inside docker
2019-10-08 11:15:37 +05:00
Dmitry Simonenko
76b64c7401
odyssey: minor fixes
2019-09-28 17:42:29 +03:00
Dmitry Simonenko
1645a55d09
odyssey: set pam response ptr to NULL on error
2019-09-28 17:27:34 +03:00
Dmitry Simonenko
c6542d7003
odyssey: post merge fixes
2019-09-27 16:47:45 +03:00
Dmitry Simonenko
d84da24dc7
Merge pull request #68 from reshke/add_pam_service_support
...
Add PAM auth support
2019-09-27 15:57:44 +03:00
reshke
debfd09d8e
Add PAM auth support
2019-09-26 13:54:53 +05:00
Andrey Borodin
7681160dd1
Avoid private inclusion ( fix #67 )
2019-08-23 09:45:35 +05:00
Dmitry Simonenko
2c1e05d5d6
machinarium: fix channel/event_mgr timeout race
2019-08-11 15:08:55 +03:00
Dmitry Simonenko
6f018e48e5
odyssey: rework connection retry logic for too many connections case
2019-08-10 21:03:41 +03:00
Dmitry Simonenko
feb97828c6
odyssey: post merge fixes and refactoring
2019-08-10 19:30:45 +03:00
Dmitry Simonenko
332dbe7e16
Merge pull request #60 from gms80/master
...
* Corrected SEGFAULT in case of non-existent user in auth_query
2019-08-10 19:02:46 +03:00
Dmitry Simonenko
1dc7f58c73
odyssey: fix warning and misc fixes
2019-08-08 17:39:13 +03:00
Andrey Borodin
ee02f48c65
Use 53300 for too many connections
2019-07-31 17:47:54 +05:00
Dmitry Simonenko
9041b2b475
Merge pull request #63 from x4m/test_sleeplock
...
Add few sleeplock test
2019-07-31 13:04:36 +03:00
Andrey Borodin
13bd4f1998
Fix slow test
2019-07-31 14:56:45 +05:00
Andrey Borodin
4619365642
Use milliseconds for test measurements
2019-07-31 14:48:28 +05:00
Andrey Borodin
52fc083a30
Measure test time
2019-07-31 14:40:04 +05:00
Andrey Borodin
770e242e72
Add few sleeplock test
2019-07-31 14:17:46 +05:00
Dmitry Simonenko
b7885c32ca
Merge pull request #62 from x4m/ubsan
...
Make UBSan happy
2019-07-26 15:11:50 +03:00
Andrey Borodin
3ef85db4f4
Use proper const for 'too many connections'
2019-07-26 11:11:07 +03:00
Andrey Borodin
ac146d81de
Unlock route in when read stop error happens
2019-07-24 15:42:29 +03:00
Andrey Borodin
8c6439ce4c
Make UBSan happy
2019-07-23 18:06:46 +05:00
Michael Goryainov
7713e08f41
Moved od_getpeername() call to auth.c
2019-07-17 13:07:34 +03:00
Andrey Borodin
b293d820e5
Check od_io_read_stop() return code during size-limited pool wait
2019-07-11 17:49:19 +03:00
Dmitry Simonenko
19dbc5e76f
odyssey: minor fixes
2019-07-06 17:40:48 +03:00
Andrey Borodin
c7c075fb53
Fix to error detection code in check for too many connections
2019-06-28 12:01:21 +05:00
Andrey Borodin
6a3c1f78f7
Implement router retry timeout
2019-06-27 17:24:44 +05:00
Andrey Borodin
d9b829c901
Add route lock during server connection retry
2019-06-27 17:01:05 +05:00
Andrey Borodin
8dff1aabef
Wait for server connection on "too many connections" if pool_timeout!=0
...
This reflects PgBouncer behavior on query_wait_timeout and should help
replace cascades of PgBouncers. Currently if wave of incoming
connections is coordinated casecade of PgBouncers will try smooth peak
with at least 2 seconds wait, while Odyssey just resest every
connection with is over role connection limit.
2019-06-27 16:43:26 +05:00
Andrey Borodin
99b1979ea5
Reformat code
2019-06-26 10:49:51 +05:00
Michael Goryainov
7b6fb2ded7
* Corrected SEGFAULT in case of non-existent user in auth_query
...
+ Added ability for host-based authentification a-la pg_hba:
e.g.
auth_query "SELECT usename, passwd FROM pg_shadow,pg_hba_net WHERE usename='%u' AND ((pg_shadow.usename=pg_hba_net.username and network >> '%h') OR (SELECT COUNT(*) FROM pg_hba_net WHERE username='%u'))
2019-06-25 17:09:31 +03:00
Andrey Borodin
f8f8db1ac5
Add logging for start, stop and client error
2019-06-17 11:35:21 +05:00
Dmitry Simonenko
d784c2ad19
odyssey: make restart read logic explicit in router attach
2019-06-13 11:55:01 +03:00
Dmitry Simonenko
a3f55f4f21
odyssey: rework packet header validation
2019-06-03 13:12:50 +03:00
Andrey
32a779206b
Remove branch restrictions from travis
2019-05-28 22:18:29 -04:00
Andrey
f1d7bf697c
Add binary collection to releases
2019-05-29 02:52:14 +01:00
Dmitry Simonenko
5716feb831
odyssey: unsubscribe from read events during pool attach wait
2019-05-25 17:26:29 +03:00
Andrey Borodin
80484c3337
Fix route connection limit handling
2019-05-21 17:43:46 +05:00
Andrey Borodin
a02f9a0b87
Move message synchronization checks
2019-05-21 17:43:25 +05:00
Andrey Borodin
f803b88ae5
Avoid flushing amid packet on sudden connection termination
2019-05-14 16:45:53 +05:00
Andrey Borodin
538042916f
Allow long FE messages in msg validation
2019-05-13 15:29:46 +03:00
Andrey Borodin
edd5477302
Improve protocol message validation
2019-04-30 14:47:43 +05:00
Andrey Borodin
8abed18d69
Minimal message validation
...
Prevent improperly formatted message from breaking into serious disaster
for running process.
2019-04-29 17:14:45 +05:00
Andrey Borodin
4198f2694d
Restore odyssey_stress
2019-04-29 14:01:15 +05:00
Andrey Borodin
5fa204b082
Minor fixes
2019-04-25 14:23:23 +05:00
Dmitry Simonenko
9cd12c9d4c
odyssey: minor fixes and refactoring
2019-04-13 13:26:47 +03:00
Andrey Borodin
c4e2cedc35
Support of replication protocol
2019-04-12 15:13:50 +05:00
Dmitry Simonenko
859401f6dc
odyssey: handle relay packet SKIP during for full-packet/deploy
2019-04-07 18:35:31 +03:00
Dmitry Simonenko
df38cfe87b
Merge pull request #54 from x4m/cond_leak
...
Prevent condition leak
2019-03-29 13:09:10 +03:00
Andrey Borodin
0b8e8309c3
Prevent condition leak
2019-03-29 15:07:59 +05:00