Hi Vishal,
I'm not entirely sure what could be happening here. The error is
coming from the call to a `socket.send()` in the
thespian/system/transport/TCPTransport.py file and there's no obvious
reasons why the send would be throwing that exception.
The error message is generated from approximately line 920 in that
file; it might be interesting to enhance the error message:
thesplog('Socket error sending to %s on %s: %s / %s: %s [%s of %s
rem]', intent.targetAddr, intent.socket, str(err), err.errno, intent,
len(intent.serMsg), intent.amtSent, level=logging.ERROR)
You might also try some simple testing:
$ python
>>> import socket
>>> s = socket.socket()
>>> s.bind( ("", 0) )
>>> s.connect( ("", 22) )
>>> buf = (b"D" * 30 * 1024 * 1024) # a 30MB buffer full of D characters
>>> s.send(buf)
You can try different buf contents and see if anything results in the errno 22.
Regards,
Kevin
> --
> You received this message because you are subscribed to the Google Groups "thespian.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
thespianpy+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/thespianpy/146bc4a3-defc-4204-be2d-a391b9da15bcn%40googlegroups.com.
--
-KQ