Re: New GIOP timeout patch - please review
Michael Meeks <[email protected]> Fri, 22 Jun 2007 13:31:23 +0100
| Newsgroups | gmane.comp.gnome.orbit.general |
|---|---|
| Organization | Novell, Inc. |
| Message-ID | <1182515483.3917.225.camel@localhost> |
Hi Jules, On Fri, 2007-06-22 at 14:18 +0200, Jules Colding wrote: > I think that I need to crawl down into glib and take a look... My > current test patch is below as well as my modifications to the echo > client/server. The echo server must be executed as: ;-) we're attaching to the wrong main context: /echo-client --GIOPTimeoutMSEC=30 `cat /tmp/ior` 1 ** Message: 0 Adding timeout for 30 milliseconds Timeout function invoked ** Message: 00 ** Message: 1 Printing exception : IDL:omg.org/CORBA/TIMEOUT:1.0 ** Message: 2 ** Message: 3 ** Message: A ** Message: B ** Message: C ** Message: C I attach a patch that works for me [ I was missing timeout.h FWIW ]... Things to fix: * lifecycle, we can't just add timeouts without removing them again if our connection is closed. * adding a timeout is quite expensive CPU-wise; we might do better by simply extending linc-source.c (link_source_prepare) to handle the timeouts & manage how long each connection has been waiting itself: to avoid adding many more sources. [ though not sure how to get notified of that timeout - check the glib/gmain.c source I guess ]. HTH, Michael. -- [email protected] <><, Pseudo Engineer, itinerant idiot _______________________________________________ orbit-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/orbit-list
for-jules.diff
(text/x-patch, 0 B)