I'm not sure if I submitted this before, but it really helps our
implementation.
We have 12 PyMSNt gateways, and a concern that MSN would *discourage*
over 8,000 connections from the same IP address led me to modify
src/legacy/msn/msnw.py so that it would use the value in config.host
instead of the default.
Here is the 'diff':
$ diff msnw.py ~/trunk/src/legacy/msn/
15c15
<
---
> import config
65c65,66
<
self.connectors.append(reactor.connectTCP("messenger.hotmail.com", 1863,
dispatchFactory))
---
>
self.connectors.append(reactor.connectTCP("messenger.hotmail.com", 1863,
dispatchFactory, bindAddress=(config.host,0)))
>
#self.connectors.append(reactor.connectTCP("messenger.hotmail.com",
1863, dispatchFactory))
77c78,79
< self.connectors.append(reactor.connectTCP(host, port,
self.notificationFactory))
---
> self.connectors.append(reactor.connectTCP(host, port,
self.notificationFactory, bindAddress=(config.host,0)))
> #self.connectors.append(reactor.connectTCP(host, port,
self.notificationFactory))
505c507,508
< reactor.connectTCP(host, port, factory)
---
> reactor.connectTCP(host, port, factory,
bindAddress=(config.host,0))
> #reactor.connectTCP(host, port, factory)
520c523,524
< reactor.connectTCP(host, port, factory)
---
> reactor.connectTCP(host, port, factory,
bindAddress=(config.host,0))
> #reactor.connectTCP(host, port, factory)
_______________________________________________
py-transports mailing list
[email protected]
http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports