Re: tcludp - bug when closing 1-of-2 listening ports
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: Tue, 4 Nov 2008 05:45:36 -0800 (PST)
On Nov 4, 11:35 am, Vera <vera_s...@xxxxxx> wrote:
The packet "exit" shall simulate an eof on logical layer, because IMHO
udp (other than tcp?) has no eof or other notification, that the sender
closes the sending port.
Correct. EOF is a stream-oriented concept (TCP, pipes, files,
devices). UDP packets are just independent datagrams.
You did observe an empty packet on tcp, too?
No. "Empty" packets do occur in TCP, but they are normal, since they
carry acknowledge and flow control information, and they certainly
don't bubble up to the client program.
Moreover, TCP sockets are built into Tcl, while UDP is in an
extension. Different numbers of users, and of maintainers. That
explains why one is more polished than the other ;-)
Is there an unknown-feature/bug on tcl's close?
The problem is in TclUDP's channeltype-dependent closeProc and
fileevent handling code. Not in the generic channel layer's [close].
That why I keep suggesting you to turn to the author ;-)
-Alex
.
- Follow-Ups:
- Re: tcludp - bug when closing 1-of-2 listening ports
- From: Neil Madden
- Re: tcludp - bug when closing 1-of-2 listening ports
- References:
- Re: tcludp - bug when closing 1-of-2 listening ports
- From: Alexandre Ferrieux
- Re: tcludp - bug when closing 1-of-2 listening ports
- From: Vera
- Re: tcludp - bug when closing 1-of-2 listening ports
- From: Neil Madden
- Re: tcludp - bug when closing 1-of-2 listening ports
- From: Vera
- Re: tcludp - bug when closing 1-of-2 listening ports
- Prev by Date: Re: tcludp - bug when closing 1-of-2 listening ports
- Next by Date: Re: sending tab keys with puts command
- Previous by thread: Re: tcludp - bug when closing 1-of-2 listening ports
- Next by thread: Re: tcludp - bug when closing 1-of-2 listening ports
- Index(es):
Relevant Pages
|