diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-22 15:49:49 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-22 15:49:49 +0000 |
commit | 8a41d98a8c38bd0da5806e91095c3a192f726b2a (patch) | |
tree | f2d6c6059e12ed80ef0ec2276d383e8f566b2de4 /src/stream | |
parent | 57c802fabc10e68ce291dfde52078c64434914b7 (diff) |
starting to use stream in fs
git-svn-id: https://gnunet.org/svn/gnunet@25106 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/stream_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c index fd2f86e51b..46f7abb476 100644 --- a/src/stream/stream_api.c +++ b/src/stream/stream_api.c @@ -34,7 +34,6 @@ * @author Sree Harsha Totakura */ - #include "platform.h" #include "gnunet_common.h" #include "gnunet_crypto_lib.h" @@ -1918,6 +1917,8 @@ handle_receive_close (struct GNUNET_STREAM_Socket *socket, that that stream has been shutdown */ if (NULL != socket->write_handle) { + // FIXME: this breaks if 'write_cont' decides to + // call SOCKET_close! if (NULL != socket->write_handle->write_cont) socket->write_handle->write_cont (socket->write_handle->write_cont_cls, GNUNET_STREAM_SHUTDOWN, 0); @@ -2040,6 +2041,8 @@ handle_close (struct GNUNET_STREAM_Socket *socket, that that stream has been shutdown */ if (NULL != socket->write_handle) { + // FIXME: this breaks if 'write_cont' decides to + // call SOCKET_close! if (NULL != socket->write_handle->write_cont) socket->write_handle->write_cont (socket->write_handle->write_cont_cls, GNUNET_STREAM_SHUTDOWN, 0); @@ -3543,11 +3546,11 @@ GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket, case STATE_RECEIVE_CLOSE_WAIT: case STATE_CLOSED: case STATE_CLOSE_WAIT: - proc (proc_cls, GNUNET_STREAM_SHUTDOWN, NULL, 0); LOG (GNUNET_ERROR_TYPE_DEBUG, "%s: %s() END\n", GNUNET_i2s (&socket->other_peer), __func__); + proc (proc_cls, GNUNET_STREAM_SHUTDOWN, NULL, 0); return NULL; default: break; |