[rtmpdump] Wrong socket timeout in MinGW version
skaarj1 at gmail.com
Fri Jan 1 16:01:04 CET 2010
The MinGW version has a problem with the TCP/IP socket timeout which
is applied in "bool RTMP_Connect(RTMP * r)". The Winsock support for
"SO_RCVTIMEO" does not use the "struct timeval" but is using an
integer instead which specifies the timeout in milliseconds. So, the
current MinGW version of rtmpdump tends to throw a socket error (10060
– WSAETIMEDOUT) because it treats the 'seconds' which are specified in
"Link.timeout" and which are passed in "tv.tv_sec" actually as
The attached patch shows a possible way to fix it for MinGW.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 879 bytes
Desc: not available
More information about the rtmpdump