Skip to content

fix work with socket on windows #71

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

Merged
merged 2 commits into from
May 4, 2016
Merged

Conversation

vmarunov
Copy link
Contributor

@vmarunov vmarunov commented Apr 8, 2016

fix connection error on windows platform:

>>> import tarantool
>>> tarantool.connect('48.12.22.123',3311)

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    tarantool.connect('48.12.22.123',3311)
  File "C:\Python27\lib\site-packages\tarantool\__init__.py", line 47, in connect
    encoding=encoding)
  File "C:\Python27\lib\site-packages\tarantool\connection.py", line 93, in __init__
    recv = self._sys_recv = libc.recv
  File "C:\Python27\lib\ctypes\__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'recv' not found

vmarunov added 2 commits April 7, 2016 21:50
>>> import tarantool
>>> tarantool.connect('48.12.22.123',3311)
```
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    tarantool.connect('48.12.22.123',3311)
  File "C:\Python27\lib\site-packages\tarantool\__init__.py", line 47, in connect
    encoding=encoding)
  File "C:\Python27\lib\site-packages\tarantool\connection.py", line 93, in __init__
    recv = self._sys_recv = libc.recv
  File "C:\Python27\lib\ctypes\__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'recv' not found
```
@vmarunov vmarunov mentioned this pull request Apr 29, 2016
@bigbes bigbes merged commit 0c92f44 into tarantool:master May 4, 2016
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

Successfully merging this pull request may close these issues.

2 participants