Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge branch '1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince committed Jul 24, 2018
2 parents 0a14408 + 024f4ce commit 23d9acb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seabolt/src/bolt/connections.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ int _send(struct BoltConnection* connection, const char* data, int size)
int sent = 0;
switch (connection->transport) {
case BOLT_SOCKET: {
sent = TRANSMIT(connection->socket, data, size, 0);
sent = TRANSMIT(connection->socket, data + total_sent, remaining, 0);
break;
}
case BOLT_SECURE_SOCKET: {
sent = TRANSMIT_S(connection->ssl, data, size, 0);
sent = TRANSMIT_S(connection->ssl, data + total_sent, remaining, 0);
break;
}
}
Expand Down Expand Up @@ -324,10 +324,10 @@ int _receive(struct BoltConnection* connection, char* buffer, int min_size, int
int received = 0;
switch (connection->transport) {
case BOLT_SOCKET:
received = RECEIVE(connection->socket, buffer, max_remaining, 0);
received = RECEIVE(connection->socket, buffer + total_received, max_remaining, 0);
break;
case BOLT_SECURE_SOCKET:
received = RECEIVE_S(connection->ssl, buffer, max_remaining, 0);
received = RECEIVE_S(connection->ssl, buffer + total_received, max_remaining, 0);
break;
}
if (received>0) {
Expand Down

0 comments on commit 23d9acb

Please sign in to comment.