Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec903d2

Browse files
committed
Improve comment.
Based on the old comment, it took me a while to figure out what theproblem was. The importnat detail is that SSL_read() can return WANT_READeven though some raw data was received from the socket.
1 parent73cfa37 commitec903d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/interfaces/libpq/fe-misc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,10 @@ pqReadData(PGconn *conn)
744744
* the file selected for reading already.
745745
*
746746
* In SSL mode it's even worse: SSL_read() could say WANT_READ and then
747-
* data could arrive before we make the pqReadReady() test. So we must
748-
* play dumb and assume there is more data, relying on the SSL layer to
749-
* detect true EOF.
747+
* data could arrive before we make the pqReadReady() test, but the
748+
* second SSL_read() could still say WANT_READ because the data received
749+
* was not a complete SSL record. So we must play dumb and assume there
750+
* is more data, relying on the SSL layer to detect true EOF.
750751
*/
751752

752753
#ifdefUSE_SSL

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp