-
Notifications
You must be signed in to change notification settings - Fork 194
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
TCP_MAXSEG cannot be set using SOL_TCP #130
Comments
Ran into this issue while using nameko which has dependencies for kombu which in-turn has dependencies for amqp. Errors seen: Temporarily resolved by downgrading the version of amqp to 2.1.3
Environment Used: |
Can any of you confirm this is still a problem with master? |
@thedrow Can confirm this still happens and downgrading to 2.1.3 solved the issue for me. |
Unfortunately, I am not able to replicate it:
Are there any steps how to reproduce this issue? |
I was hit by this exact same issue too. The main symptom was that Celery started throwing connection errors:
I tried to locate the source of the error, and it seems to be this line: Line 242 in 069b5d9
The code retrieves the TCP socket defaults via Maybe just adding an exception handling block around |
I was testing utilizing this package on a Windows 7 Enterprise N, 64-bit machine and ran into the error listed below. The problem seems to be with attempting to set the TCP_MAXSEG socket option utilizing SOL_TCP. However, if you simply change this to using socket.SOL_SOCKET it can be set without a problem. This if my first foray into sockets, so I am not sure that is the "correct" solution.
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\pydevd.py", line 2407, in
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\pydevd.py", line 1798, in run
launch(file, globals, locals) # execute the script
File "C:/SLS/Dropbox/ABP/Code/arraypy/arraybiopharma/messagequeue/init.py", line 95, in
mq = MessageQueue()
File "C:/SLS/Dropbox/ABP/Code/arraypy/arraybiopharma/messagequeue/init.py", line 32, in init
self.connection.connect()
File "C:\Python27\lib\site-packages\amqp-2.1.4-py2.7.egg\amqp\connection.py", line 294, in connect
self.transport.connect()
File "C:\Python27\lib\site-packages\amqp-2.1.4-py2.7.egg\amqp\transport.py", line 128, in connect
self.socket_settings, self.read_timeout, self.write_timeout,
File "C:\Python27\lib\site-packages\amqp-2.1.4-py2.7.egg\amqp\transport.py", line 180, in _init_socket
self._set_socket_options(socket_settings)
File "C:\Python27\lib\site-packages\amqp-2.1.4-py2.7.egg\amqp\transport.py", line 210, in _set_socket_options
self.sock.setsockopt(SOL_TCP, opt, val)
File "C:\Python27\lib\socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10042] An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call
findFrame: frame not found.
Looking for thread_id:pid14784_seq2, frame_id:54157024
Current thread_id:pid14784_seq2, available frames:
41174616 - 41163264 - 54227504 - 51494640 - 41161696
41173392 -
41173392 -
The text was updated successfully, but these errors were encountered: