~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/utils/bsdsocket.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel, Ghislain Antony Vaillant, Picca Frédéric-Emmanuel
  • Date: 2015-02-26 13:31:59 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150226133159-zvom6ax6mah3irhv
Tags: 2.3.3+dfsg-1~exp1
[Ghislain Antony Vaillant]
* New upstream release.

[Picca Frédéric-Emmanuel]
* Upstream moved to github (watch, control and copyright file updated)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        else:
70
70
            #  Linux/MacOSX implementation
71
71
            #  Thanks to eborisch:
72
 
            #  http://code.google.com/p/spyderlib/issues/detail?id=1106
 
72
            #  See issue 1106
73
73
            datalen = temp_fail_retry(socket.error, sock.recv,
74
74
                                      SZ, socket.MSG_WAITALL)
75
75
            if len(datalen) == SZ:
92
92
            return
93
93
 
94
94
 
95
 
# Using a lock object to avoid communication issues described in Issue 857:
96
 
# http://code.google.com/p/spyderlib/issues/detail?id=857
 
95
# Using a lock object to avoid communication issues described in Issue 857
97
96
COMMUNICATE_LOCK = threading.Lock()
98
97
 
99
98
# * Old com implementation *
100
 
# See solution (1) in Issue 434:
101
 
# http://code.google.com/p/spyderlib/issues/detail?id=434#c13
 
99
# See solution (1) in Issue 434, comment 13:
102
100
def communicate(sock, command, settings=[]):
103
101
    """Communicate with monitor"""
104
102
    try:
111
109
        COMMUNICATE_LOCK.release()
112
110
 
113
111
## new com implementation:
114
 
## See solution (2) in Issue 434:
115
 
## http://code.google.com/p/spyderlib/issues/detail?id=434#c13
 
112
## See solution (2) in Issue 434, comment 13:
116
113
#def communicate(sock, command, settings=[], timeout=None):
117
114
#    """Communicate with monitor"""
118
115
#    write_packet(sock, command)