Hi,
Here's a one-line patch that:
a) passes the test suite and our application smoke test runs;
b) makes a difference when the Sofia root is set to the non-threading mode.
If not for blocking connect(), the Sofia-SIP coexists in the same thread
with the D-Bus service in our GLib mainloop. This patch removes the
single discovered temptation for our project to enable threading, which
would be a change for the worse in our platform. Additionally, it makes
for better behavior when connect() blocks, as the stack then times out
accordingly to its own preference, and not what the operating system
deems good for connect().
Best regards,
Mikhail
New patches:
[Set the socket to non-blocking mode before calling connect()
Mikhail Zabaluev <[EMAIL PROTECTED]>**20070507113036] {
hunk ./libsofia-sip-ua/tport/tport.c 966
+
+ /* Try to have a non-blocking connect().
+ * The su_wait_create() below makes the socket non-blocking anyway. */
+ su_setblocking(s, 0);
}
Context:
[TAG rel-sofia-sip-1_12_6
Pekka Pessi <[EMAIL PROTECTED]>**20070425195422]
Patch bundle hash:
b1250ceb8685918b62482f6ef88a838e179a0a71
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel