-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Волков Никита, ИТМО DWS, Stage 6 #207
Conversation
# Conflicts: # src/main/java/ru/vk/itmo/test/volkovnikita/HttpServerImpl.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 28613 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 28615 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 28613 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 28613 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 28615 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 29680 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 29673 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 29684 lines exceeds the maximum allowed for the inline comments feature.
appendChunk(output, chunkIterator.next()); | ||
} | ||
output.append("0\r\n\r\n".getBytes(StandardCharsets.UTF_8)); | ||
return connection.write(output.toBytes(), 0, output.length()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь можем не все записать в сокет
"Returns:
The number of bytes written, possibly zero"
public synchronized void sendResponse(Response response) throws IOException { | ||
if (response instanceof ChunkHttpResponse chunkHttpResponse) { | ||
server.incRequestsProcessed(); | ||
write(new ChunkQueueItem(chunkHttpResponse)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В случае медленного клиента мы затянем все данные в память и упадем с ООМ, не так ли? В этом случае стриминг не получится. Тут надо обратить внимание на то что под капотом у session.write() (this.queueHead.append(item))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 29684 lines exceeds the maximum allowed for the inline comments feature.
Сборка не проходит, поэтому не будем мёрджить. |
No description provided.