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

OSError: [WinError 10040] #19

Open
BriceSchaffner opened this issue Dec 11, 2018 · 1 comment
Open

OSError: [WinError 10040] #19

BriceSchaffner opened this issue Dec 11, 2018 · 1 comment

Comments

@BriceSchaffner
Copy link

Running the multi_ping on a Windows Server 2012 R2 Standard (64 bit) with Python 3.5.2, I got the following error:


Traceback (most recent call last):
File "", line 1, in
File "D:\venv\lib\site-packages\multiping_init_.py", line 485, in multi_ping
single_results, no_results = mp.receive(retry_timeout)
File "D:\venv\lib\site-packages\multiping_init_.py", line 399, in receive
pkts = self.read_all_from_socket(remaining_time)
File "D:\venv\lib\site-packages\multiping_init
.py", line 320, in _read_all_from_socket
p = self._sock.recv(64)
OSError: [WinError 10040] A message sent on a datagram socket was larger than the internal message buffer or some other
network limit, or the buffer used to receive a datagram into was smaller than the datagram itself


Note that the IP address that I try to ping is not reachable, it works when I ping an address that is reachable. What is weird is that I have the library installed on two server which should be identical (save OS and same Python version) and it only failed on one server.

I could work around the issue by increasing the socket receive buffer to 128 bytes: File "D:\venv\lib\site-packages\multiping\__init__.py", line 320, in _read_all_from_socket p = self._sock.recv(128)

@jason-hamm
Copy link

I am experiencing this problem as well on a Windows 10 machine and Python 3.7.4 when pinging a large number of IPs (>1000).

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

No branches or pull requests

2 participants