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

(Windows) net_io_counters() overflow issue #554

Closed
wants to merge 1 commit into from
Closed

(Windows) net_io_counters() overflow issue #554

wants to merge 1 commit into from

Conversation

EvinceMoi
Copy link

not tested cause' I don't have vs2010

Signed-off-by: baneyue [email protected]

Signed-off-by: baneyue <[email protected]>
@giampaolo
Copy link
Owner

Which issue are you trying to address here and why do we need this? Is this about #501?

@EvinceMoi
Copy link
Author

sorry, I should ticket an issue first.

It' about the net_io_counter value overflow problem, since the original code use 32bit Windows API(use DWORD for in/out octets, it's easily overflowed in use for me, so i just change it to 64bit version

@giampaolo
Copy link
Owner

Ah OK, so the problem here is that net_io_counter() may overflow. Question: does this work on 32 bit versions as well?

@EvinceMoi
Copy link
Author

sorry for late reply, as the MSDN does not note the api should be used on 32 or 64 bit Windows, so I guess it should work for 32bit ;-)

One thing for sure is that the api will support Windows Vista and above.

@giampaolo
Copy link
Owner

We still support Windows XP though. Does the doc mentions that this is Vista+ only?

@EvinceMoi
Copy link
Author

Yes, Vista+ only for sure.

@giampaolo
Copy link
Owner

Well, in this case we need the necessary workaround to support this in Windows XP as well.

@giampaolo giampaolo changed the title use 64bit version api (Windows) net_io_counters() overflow issue Sep 3, 2015
@giampaolo
Copy link
Owner

Sorry for the big delay. Can you please update this PR (it is no longer mergeable)?

@giampaolo
Copy link
Owner

I would like to push this forward but I want to make sure it won't break Windows XP first. Can somebody please check (my virtualized XP box no longer works)?

@giampaolo
Copy link
Owner

This was fixed in #835 maintaining backward compatibility with Windows XP. Closing this out.

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

Successfully merging this pull request may close these issues.

2 participants