Skip to content
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

Closed
wants to merge 65 commits into from

Conversation

SicMundus-s
Copy link
Contributor

No description provided.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

@incubos incubos requested review from urbanchef and removed request for vladimir-bf April 29, 2024 16:02
@incubos incubos assigned urbanchef and unassigned vladimir-bf Apr 29, 2024
Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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());
Copy link
Contributor

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));
Copy link
Contributor

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))

Copy link

@codeclimate codeclimate bot left a 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.

@incubos incubos closed this May 25, 2024
@incubos
Copy link
Member

incubos commented May 25, 2024

Сборка не проходит, поэтому не будем мёрджить.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants