tasklwIP - A Lightweight TCP/IP stack - Tasks: task #13312, Add poll callback to server pcb

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #13312: Add poll callback to server pcb

Submitter:  Noam Weissman <noam_w>
Submitted:  Wed 03 Sep 2014 07:25:38 AM UTC
   
 
Category:  None Should Start On:  Wed 03 Sep 2014 12:00:00 AM UTC
Should be Finished on:  Wed 03 Sep 2014 12:00:00 AM UTC Priority:  5 - Normal
Status:  Cancelled Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Mon 27 Apr 2015 06:11:15 PM UTC, comment #5: 

In that case... closing as 'cancelled'. I don't think it's worth the effort.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 27 Apr 2015 09:02:47 AM UTC, comment #4: 

Hi Valery,

I played with sys_timeout() and I think this is exactly what I was looking for :-)

Thanks,
Noam.

Noam Weissman <noam_w>
Sun 26 Apr 2015 03:49:03 PM UTC, comment #3: 

What prevents you from using sys_timeout() yourself?

Valery Ushakov <uwe>
Sun 26 Apr 2015 03:19:26 PM UTC, comment #2: 

Hi Simon,

I am now working on an implementation of some discovery protocol. This implementation requires that the server will do some periodical tasks.

As a continuation to my previous submission I find myself again with the need to add a task running along side my server module. If the server module had a poll callback this task could have been avoided.

Do you have in mind adding such an option ?

BR,
Noam.

Noam Weissman <noam_w>
Tue 17 Feb 2015 08:56:41 PM UTC, comment #1: 

Just thought that through: the simplest implementation of this change would have the downside of keeping the tcp_timer() always active (it is currently only active as long as connection pcbs are in one of the lists - not on an idle, listen-only server).

Simon Goldschmidt <goldsimon>
Group administrator
Wed 03 Sep 2014 07:25:38 AM UTC, original submission:  

Hi,

Every connection has a poll callback handler. This is great
when there is a live connection.

There are times we need some kind of server timing. I found one situation that this is very much needed but I am sure it can be very useful in other situations as well.

In cases were we need to keep track over user session ID's like in HTTP sessions we cannot use the connection pcb as it will be closed after the transaction is closed. I had to create a separate task that handles those session ID's !

Adding poll callback to server own pcb will give a simple mechanism to keep track over session ID's timeouts.

If not too much to to ask please add a poll callback to the server pcb as well.


BR,
Noam.

Noam Weissman <noam_w>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by uwe (Posted a comment)
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by noam_w (Submitted the item)
  • -email is unavailable- added by noam_w
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-27 goldsimon StatusNone Cancelled
        Open/ClosedOpen Closed
    2014-09-03 noam_w Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code