aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-02-13 21:46:14 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-02-13 21:46:14 +0200
commit80788a431e9bff06314a054109fdea66ac538199 (patch)
tree0dc2e4ee11fef85bbc3a9b42e9644ffab50a9d2f /src/tutorial/funcs.source
parent272923a0a6956187471df4f032eee06559520390 (diff)
downloadpostgresql-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/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions