Bug 49471 - Add a WockyConnector::connection-established
Summary: Add a WockyConnector::connection-established
Status: RESOLVED FIXED
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.freedesktop.org/~jonny/wo...
Whiteboard:
Keywords: patch
Depends on:
Blocks: 49473
  Show dependency treegraph
 
Reported: 2012-05-04 03:29 UTC by Jonny Lamb
Modified: 2012-09-17 14:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jonny Lamb 2012-05-04 03:29:44 UTC
I want a way to get to the socket as early as possible to set TCP_NODELAY. This is one way of doing it.

Another way would be have a wocky_connector_set_tcp_nodelay(WockyConnector *, gboolean) like Twisted does. I'm not really fussed.

wocky-connector-test is basically the only test which actually touches sockets (the rest use fake streams which just pass strings around which is good) so I set TCP_NODELAY there too which dropped the running time of all the tests from 37s to 10s. Not bad.
Comment 1 Jonny Lamb 2012-05-04 03:30:14 UTC
You could argue that TCP_NODELAY should only be enabled for non-releases. Thoughts?
Comment 2 Jonny Lamb 2012-08-31 11:13:25 UTC
I added ifdefs for G_OS_UNIX.
Comment 3 Jonny Lamb 2012-09-17 14:10:19 UTC
Merged after review on IRC from Simon, thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.