<div dir="ltr">Hello,<br><br>I was getting a huge timeout on Connect operation causing application GUI that uses librtmp through GStreamer to block for more than 2 minutes, although timeout parameter was defined.<br><br>0:00:00.550468481  55310x41f600 DEBUG rtmp :0:: Parsing...<br>0:00:00.550560518  55310x41f600 DEBUG rtmp :0:: Parsed protocol: 2<br>0:00:00.550629629  55310x41f600 DEBUG rtmp :0:: Parsed host : xx.xx.xx.xx<br>0:00:00.550678073  55310x41f600 DEBUG rtmp :0:: Parsed app: liveedge1<br>0:00:00.550750740  55310x41f600 INFO  rtmpsrc gst-plugins-bad-1.4.3/ext/rtmp/gstrtmpsrc.c:585:gst_rtmp_src_start:<source> seekable 0<br>0:02:07.820957257  55310x41f600 ERROR rtmp :0:: RTMP_Connect0, failed to connect socket. 145 (Connection timed out)<br><br>After setting timeout for sending (SO_SNDTIMEO) operations everything works as it should.<br><br>0:00:00.538803815  61500x41f600 DEBUG rtmp :0:: Parsing...<br>0:00:00.538897370  61500x41f600 DEBUG rtmp :0:: Parsed protocol: 2<br>0:00:00.538964037  61500x41f600 DEBUG rtmp :0:: Parsed host : xx.xx.xx.xx<br>0:00:00.539010778  61500x41f600 DEBUG rtmp :0:: Parsed app: liveedge1<br>0:00:00.539083333  61500x41f600 INFO  rtmpsrc gst-plugins-bad-1.4.3/ext/rtmp/gstrtmpsrc.c:585:gst_rtmp_src_start:<source> seekable 0<br>0:00:10.538779327  61500x41f600 ERROR rtmp :0:: RTMP_Connect0, failed to connect socket. 150 (Operation now in progress)<br><br>Patch for setting timeout for send operations is attached.<br></div>