Closed benedekh closed 7 years ago
weloveclouds.communication.services.CommunicationService.receive()
if (connectionToEndpoint.isConnected()) { byte[] receivedData = null; InputStream socketDataReader = **connectionToEndpoint**.getInputStream(); **while (receivedData == null) {** int availableBytes = socketDataReader.available(); if (availableBytes != 0) { LOGGER.debug(CustomStringJoiner.join(" ", "Receiving", String.valueOf(availableBytes), "from the connection.")); receivedData = new byte[availableBytes]; socketDataReader.read(receivedData); LOGGER.debug("Data received from the network."); } } return receivedData; }
The while loop never exits even though the referred socket may be already closed from the other (client) side.
fixed by #110
weloveclouds.communication.services.CommunicationService.receive()
The while loop never exits even though the referred socket may be already closed from the other (client) side.