issue 10
(Generalized socket creation operation) reported
- stomppy use socket.socket() directly to create a socket, and assume it
unblocking. This may not be true with some global socket functions, such as
socket.setdefaulttimeout().
To solve the problem, I extract the socket creation operation, so I am able
to hook it.
See my patch
[http://blog.ftofficer.com/pub/patches/stomppy/socket_factory.patch here]
or the attached copy.
After apply the patch, user can use the following code snippet to
workaround the issue:
<pre>
import stomppy
import socket
def MySocketFactory(*args, **kwargs):
sock = socket.socket(*args, **kwargs)
sock.setblocking(0)
return sock
stomppy._SocketFactory = MySocketFactory
</pre>
stomppy use socket.socket() directly to create a socket, and assume it
unblocking. This may not be true with some global socket functions, such as
socket.setdefaulttimeout().
To solve the problem, I extract the socket creation operation, so I am able
to hook it.
See my patch
[http://blog.ftofficer.com/pub/patches/stomppy/socket_factory.patch here]
or the attached copy.
After apply the patch, user can use the following code snippet to
workaround the issue:
<pre>
import stomppy
import socket
def MySocketFactory(*args, **kwargs):
sock = socket.socket(*args, **kwargs)
sock.setblocking(0)
return sock
stomppy._SocketFactory = MySocketFactory
</pre>
issue 89
(API proxy site support) commented on
- I created a patch to address the issue.
See the attachment.
A new argument of Api.__init__ was added:
api_url:
The base URL of twitter API. Defaults to DEFAULT_TWITTER_URL.
Only specify this if you need an alternate twitter API proxy.
I created a patch to address the issue.
See the attachment.
A new argument of Api.__init__ was added:
api_url:
The base URL of twitter API. Defaults to DEFAULT_TWITTER_URL.
Only specify this if you need an alternate twitter API proxy.