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

Appearance settings

Commit 685158d

Browse filesBrowse files
authored
Update HTTPSConnection.cpp for possible ws fix.
Update as mentioned in issue fhessel#89 for possible crash fix on websockets.
1 parent 3e97446 commit 685158d
Copy full SHA for 685158d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎src/HTTPSConnection.cpp

Copy file name to clipboardExpand all lines: src/HTTPSConnection.cpp
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ size_t HTTPSConnection::writeBuffer(byte* buffer, size_t length) {
109109
}
110110

111111
size_t HTTPSConnection::readBytesToBuffer(byte* buffer, size_t length) {
112-
return SSL_read(_ssl, buffer, length);
112+
int ret = SSL_read(_ssl, buffer, length);
113+
if (ret < 0) {
114+
HTTPS_LOGD("SSL_read error: %d", SSL_get_error(_ssl, ret));
115+
}
116+
return ret;
113117
}
114118

115119
size_t HTTPSConnection::pendingByteCount() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.