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

Remove max_msg_size #3560

Merged
merged 3 commits into from Jul 9, 2013
Merged

Remove max_msg_size #3560

merged 3 commits into from Jul 9, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Jul 6, 2013

The max_msg_size safety limit is just removed.

to 1MB. 64k is probably too conservative (1MB may be as well, I'm not sure of the value of this configurable, really).

Also warn about the dropped messages, so that there is a hint about the cause of strange behavior.

closes #3124

@Carreau
Copy link
Member

Carreau commented Jul 6, 2013

should we wait for @ellisonbg input to merge ?

@ellisonbg
Copy link
Member

I think the idea was to mitigate denial of service attacks, But I honestly don't know if this configurable would even help.

Sent from my iPhone

On Jul 5, 2013, at 10:19 PM, Min RK notifications@github.com wrote:

to 1MB. 64k is probably too conservative (1MB may be as well, I'm not sure of the value of this configurable, really).

Also warn about the dropped messages, so that there is a hint about the cause of strange behavior.

You can merge this Pull Request by running

git pull https://github.com/minrk/ipython longcell
Or view, comment on, or merge it at:

#3560

Commit Summary

up default max_msg_size to 1MB
warn about messages dropped due to oversize
File Changes

M IPython/html/notebookapp.py (4)
M IPython/html/services/kernels/handlers.py (6)
Patch Links:

https://github.com/ipython/ipython/pull/3560.patch
https://github.com/ipython/ipython/pull/3560.diff

@minrk
Copy link
Member Author

minrk commented Jul 7, 2013

Should we just remove it, then? Remember, this code is only hit after the connection has been established as valid and authenticated.

@ghost ghost assigned ellisonbg Jul 9, 2013
@Carreau
Copy link
Member

Carreau commented Jul 9, 2013

+1 for removing limit alltogether.

It was a security feature without an application.
@minrk
Copy link
Member Author

minrk commented Jul 9, 2013

This PR now removes max_msg_size entirely

@ellisonbg
Copy link
Member

I am fine with that.

On Tue, Jul 9, 2013 at 9:37 AM, Min RK notifications@github.com wrote:

This PR now removes max_msg_size entirely


Reply to this email directly or view it on GitHubhttps://github.com//pull/3560#issuecomment-20687419
.

Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com

minrk added a commit that referenced this pull request Jul 9, 2013
Remove max_msg_size

The max_msg_size safety limit is just removed.

closes #3124
@minrk minrk merged commit ced013f into ipython:master Jul 9, 2013
@minrk minrk deleted the longcell branch July 9, 2013 18:50
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Remove max_msg_size

The max_msg_size safety limit is just removed.

closes ipython#3124
@andycjw
Copy link

andycjw commented May 7, 2015

long multiline input takes forever to run and i'm using 3.1.0-cbccb68.
the string is only 100000 in char length, and it's not working for me

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.

Long multiline strings in Notebook
4 participants