Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 19, 2012, 3:53 PM

Post #1 of 5 (75 views)
Permalink
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

Mahmood Hikmet added the comment:

I am facing this same issue.

I set recvfrom to have a timeout of 5 seconds and stuck it in an infinite loop with some response code based on what is received.

The sending functionality of the socket is not compromised at all. It can always send. However, after about 10-20 minutes of normal operation (i.e. packets are being sent and received properly) - python stops being able to receive packets (but is still able to send them).

Cross-checking this with wireshark showed me that incoming packets are being received by the system (so the problem is somewhere between receiving them on the network adapter and accessing it in python).

I'm running 64bit Windows 7 with 2 network adapters (wired and wireless).

I also tried running the same python script in 4-200 processes simultaneously (but on different ports), and the error happens at the same time for ALL windows.

All firewalls are disabled.

----------
nosy: +sadmoody

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 19, 2012, 4:23 PM

Post #2 of 5 (70 views)
Permalink
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP. [In reply to]

Antoine Pitrou added the comment:

> I set recvfrom to have a timeout of 5 seconds and stuck it in an
> infinite loop with some response code based on what is received.

Does it make a difference if you set specify a timeout?
Could you upload a script that reproduces the issue?
Also, which Python version have you been running?

----------
nosy: +pitrou

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 19, 2012, 4:46 PM

Post #3 of 5 (70 views)
Permalink
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP. [In reply to]

Mahmood Hikmet added the comment:

I'm unsure what you mean by "set specify" a timeout, but I do use the "settimeout()" function.

I've stripped my program of everything that is not dealing with the socket and replaced the string being sent back with a dummy one. But this is essentially how it's laid out.

I'm using Python 2.7.2

----------
Added file: http://bugs.python.org/file26905/recvfrom_fail.py

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 20, 2012, 12:00 AM

Post #4 of 5 (69 views)
Permalink
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP. [In reply to]

Martin v. Löwis added the comment:

I still can't reproduce it. I'm attaching client and server scripts that communicate over 127.0.0.1. This works just fine.

----------
Added file: http://bugs.python.org/file26914/server.py

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 20, 2012, 12:00 AM

Post #5 of 5 (69 views)
Permalink
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP. [In reply to]

Changes by Martin v. Löwis <martin [at] v>:


Added file: http://bugs.python.org/file26915/client.py

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.