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

ERL-930: inet:getstat/1,2 documentation missing send_pend description #3886

Closed
OTP-Maintainer opened this issue Apr 30, 2019 · 5 comments
Closed
Assignees
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: essen
Affected version: Not Specified
Fixed in version: OTP-22.1
Component: kernel
Migrated from: https://bugs.erlang.org/browse/ERL-930


The documentation[1] for inet:getstat/1,2 has the right spec, but the description below is missing any details about send_pend. On the other hand it talks about a non-existant send_dvi. I looked into what send_pend really is and it seems to be the size of the driver io queue, whatever that means. I suppose it's in bytes. If someone can quickly explain I'll send a PR.

[1] http://erlang.org/doc/man/inet.html#getstat-2
@OTP-Maintainer
Copy link
Author

essen said:

We currently get a value of 0 in a test environment for distribution sockets. We would like to know what this value refers to exactly and at which point it becomes worrisome (non-0 or above a certain amount?)

@OTP-Maintainer
Copy link
Author

essen said:

Is this the same value as from `erlang:port_info(Port, queue_size)`?

@OTP-Maintainer
Copy link
Author

bmk said:

Hi,

Yes its the same value!

So, its data sent on the port, that has not yet been "consumed"
by the driver (still pending).

There does not seem to be any send_dvi. Possibly this is just
a case of copy-paste... Remove.

Regards,
	/BMK


@OTP-Maintainer
Copy link
Author

essen said:

https://github.com/erlang/otp/pull/2259

@OTP-Maintainer
Copy link
Author

essen said:

I've added a related question in the PR. Another part of the documentation might be incorrect.

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug team:PS Assigned to OTP team PS priority:medium labels Feb 10, 2021
@OTP-Maintainer OTP-Maintainer added this to the OTP-22.1 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants