-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adjust door message size with door_setparam #10
Comments
Seems I have still got this wrong. Going to remove the door_setparam calls and set the message size back to 512K for the time being and figure out what those calls actually do, and take @jasonbking's comments about |
Specifically, what I am seeing is that the upper bound for a door_call message is -1 (unbounded?) on both smartos and openindiana, ulimit -s showed my stack limit to be ~10MB on both, and calling door_setparam with the arguments displayed in the current version of C0_payload_size/server.c is not sufficient to make the server door accept a 1MB message on openindiana. I also am becoming skeptical that it is the distro which is the root of this behavior, as opposed to the zone config. I think I am in the global zone on my openindiana vm, but I need to verify that. |
This helps deal with errors mentioned in #10.
W. Richard Stevens points out in Unix Network Programming vol. 2 that all of these fields can be modified independently.
|
From u/jking13:
Would be interesting to compare the defaults on each system, or maybe even use
door_setparam
in the tutorial to make them equal, so that the message transfer lessons do not have to talk about message size in the abstract.The text was updated successfully, but these errors were encountered: