Commit 2a8932b4 authored by Niels Möller's avatar Niels Möller
Browse files

* src/channel.c (do_exc_finish_channel_handler): Deleted old

(#if:ed out) code for raising EXC_FINISH_READ.
(channel_close_handler): Deleted old code calling the channel's
EOF handler here.

Rev: src/channel.c:1.97
parent 2ee780eb
...@@ -176,10 +176,6 @@ do_exc_finish_channel_handler(struct exception_handler *s, ...@@ -176,10 +176,6 @@ do_exc_finish_channel_handler(struct exception_handler *s,
* code in a live channel is supposed to raise * code in a live channel is supposed to raise
* EXC_FINISH_PENDING. The typical caller is a channel's * EXC_FINISH_PENDING. The typical caller is a channel's
* CHANNEL_CLOSE callback that is called below. */ * CHANNEL_CLOSE callback that is called below. */
#if 0
if (!self->connection->table->channel_count)
EXCEPTION_RAISE(self->connection->e, &finish_read_exception);
#endif
break; break;
case EXC_FINISH_CHANNEL: case EXC_FINISH_CHANNEL:
...@@ -1409,13 +1405,6 @@ DEFINE_PACKET_HANDLER(static, channel_close_handler, ...@@ -1409,13 +1405,6 @@ DEFINE_PACKET_HANDLER(static, channel_close_handler,
werror("Unexpected channel CLOSE.\n"); werror("Unexpected channel CLOSE.\n");
} }
#if 0
/* FIXME: Which eof-handlers rely on being called in
* this case? */
if (! (channel->flags & (CHANNEL_RECEIVED_EOF))
&& channel->eof)
CHANNEL_EOF(channel);
#endif
if (channel->flags & CHANNEL_SENT_CLOSE) if (channel->flags & CHANNEL_SENT_CLOSE)
{ {
static const struct exception finish_exception static const struct exception finish_exception
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment