equal
deleted
inserted
replaced
1019 return os::recv(_socket, buf, (int)len, 0); |
1019 return os::recv(_socket, buf, (int)len, 0); |
1020 } |
1020 } |
1021 |
1021 |
1022 void networkStream::flush() { |
1022 void networkStream::flush() { |
1023 if (size() != 0) { |
1023 if (size() != 0) { |
1024 int result = os::raw_send(_socket, (char *)base(), (int)size(), 0); |
1024 int result = os::raw_send(_socket, (char *)base(), size(), 0); |
1025 assert(result != -1, "connection error"); |
1025 assert(result != -1, "connection error"); |
1026 assert(result == (int)size(), "didn't send enough data"); |
1026 assert(result == (int)size(), "didn't send enough data"); |
1027 } |
1027 } |
1028 reset(); |
1028 reset(); |
1029 } |
1029 } |