diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-13 21:46:14 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-13 21:46:14 +0200 |
commit | 80788a431e9bff06314a054109fdea66ac538199 (patch) | |
tree | 0dc2e4ee11fef85bbc3a9b42e9644ffab50a9d2f /src/backend/utils/adt/arrayfuncs.c | |
parent | 272923a0a6956187471df4f032eee06559520390 (diff) | |
download | postgresql-80788a431e9bff06314a054109fdea66ac538199.tar.gz postgresql-80788a431e9bff06314a054109fdea66ac538199.zip |
Simplify waiting logic in reading from / writing to client.
The client socket is always in non-blocking mode, and if we actually want
blocking behaviour, we emulate it by sleeping and retrying. But we have
retry loops at different layers for reads and writes, which was confusing.
To simplify, remove all the sleeping and retrying code from the lower
levels, from be_tls_read and secure_raw_read and secure_raw_write, and put
all the logic in secure_read() and secure_write().
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions