Skip to content

Commit

Permalink
feat: support all openssl errors
Browse files Browse the repository at this point in the history
add to authors & support all openssl errors
  • Loading branch information
lawrence910426 authored and jesperpedersen committed Mar 15, 2023
1 parent 8950fb6 commit 809d398
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Will Leinweber <will@bitfission.com>
Junduo Dong <andj4cn@gmail.com>
Luca Ferrari <fluca1978@gmail.com>
Nikita Bugrovsky <nbugrovs@redhat.com>
Lawrence Wu <lawrence910426@gmail.com>
4 changes: 4 additions & 0 deletions src/libpgagroal/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,8 @@ ssl_read_message(SSL* ssl, int timeout, struct message** msg)
err = SSL_get_error(ssl, numbytes);
switch (err)
{
case SSL_ERROR_NONE:
break;
case SSL_ERROR_ZERO_RETURN:
if (timeout > 0)
{
Expand Down Expand Up @@ -1369,6 +1371,8 @@ ssl_write_message(SSL* ssl, struct message* msg)

switch (err)
{
case SSL_ERROR_NONE:
break;
case SSL_ERROR_ZERO_RETURN:
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_WRITE:
Expand Down

0 comments on commit 809d398

Please sign in to comment.