[Click] Socket element patch

Beyers Cronje bcronje at gmail.com
Wed Apr 5 20:38:20 EDT 2006


Hi Eddie,

The socket element never initializes it's backoff timer causing an assertion
fail when scheduled. The below one liner patch fixes this. The timer is only
used during writes to the socket, hence the initialization under the
ninputs() section of the element initialization section.

Beyers

--- socket.old.cc    2006-04-06 02:19:46.000000000 +0200
+++ socket.cc    2006-04-06 02:30:07.000000000 +0200
@@ -176,6 +176,7 @@
   if (ninputs()) {
     ScheduleInfo::join_scheduler(this, &_task, errh);
     _signal = Notifier::upstream_empty_signal(this, 0, &_task);
+    _timer.initialize(this);
   }
   return 0;
 }


More information about the click mailing list