gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. 504224e112280b7b20c6


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 504224e112280b7b20c6d2882ad14f99de6d84bb
Date: Mon, 11 Oct 2010 22:25:26 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  504224e112280b7b20c6d2882ad14f99de6d84bb (commit)
       via  dc38ebdeee61f9837c0c71736ee76532cf303160 (commit)
       via  8734cff9a89283fa93b87f6d8f61ce5958e8710f (commit)
      from  18066549ad8b47fced2d0b8bccc4e9c0a69e8a43 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=504224e112280b7b20c6d2882ad14f99de6d84bb


commit 504224e112280b7b20c6d2882ad14f99de6d84bb
Author: Sandro Santilli <address@hidden>
Date:   Tue Oct 12 00:25:14 2010 +0200

    Implement Socket::eof

diff --git a/libbase/Socket.cpp b/libbase/Socket.cpp
index 4dd6e06..d276121 100644
--- a/libbase/Socket.cpp
+++ b/libbase/Socket.cpp
@@ -359,8 +359,7 @@ Socket::go_to_end()
 bool
 Socket::eof() const
 {
-    log_error("eof() called for Socket");
-    return false;
+    return !_size && bad();
 }
 
 } // namespace gnash
diff --git a/libbase/Socket.h b/libbase/Socket.h
index 3f88f25..e3fb4b7 100644
--- a/libbase/Socket.h
+++ b/libbase/Socket.h
@@ -112,7 +112,9 @@ public:
 
     /// Return true if the end of the stream has been reached.
     //
-    /// Not implemented for Socket.
+    /// EOF is when remote end closed the connection and
+    /// we have no more cached data to read
+    ///
     virtual bool eof() const;
 
 private:

http://git.savannah.gnu.org/cgit//commit/?id=dc38ebdeee61f9837c0c71736ee76532cf303160


commit dc38ebdeee61f9837c0c71736ee76532cf303160
Author: Sandro Santilli <address@hidden>
Date:   Tue Oct 12 00:23:54 2010 +0200

    Debug-print reason of exit from NullGui run (trying to figure out why 
XMLSocketTester sometimes fail

diff --git a/gui/NullGui.cpp b/gui/NullGui.cpp
index 5fbdeea..825219e 100644
--- a/gui/NullGui.cpp
+++ b/gui/NullGui.cpp
@@ -53,13 +53,15 @@ NullGui::run()
 
     if ( _timeout && now > _timeout)
     {
-        break;
+        log_debug("NullGui: exiting on timeout");
+        return false;
     }
     
     prevtime = now;
 
   }
 
+  log_debug("NullGui: exiting on quit");
   return false;
 }
 

http://git.savannah.gnu.org/cgit//commit/?id=8734cff9a89283fa93b87f6d8f61ce5958e8710f


commit 8734cff9a89283fa93b87f6d8f61ce5958e8710f
Author: Sandro Santilli <address@hidden>
Date:   Tue Oct 12 00:07:39 2010 +0200

    Write what's received only to the channel from which we received that

diff --git a/testsuite/XmlSocketServer.pl b/testsuite/XmlSocketServer.pl
index 09ee6e9..3d06aee 100644
--- a/testsuite/XmlSocketServer.pl
+++ b/testsuite/XmlSocketServer.pl
@@ -39,9 +39,7 @@ while (@S = $O->can_read) {
                 $i =~ s/\*NEWLINE\*/\n/g;
                 $i =~ s/\*NULL\*/\0/g;
 
-                foreach $C($O->handles) {
-                    $T=syswrite($C, $i, 16000);
-                }
+                $T=syswrite($_, $i, 16000);
             }
 
             if ($i =~ m/closeNow/) {

-----------------------------------------------------------------------

Summary of changes:
 gui/NullGui.cpp              |    4 +++-
 libbase/Socket.cpp           |    3 +--
 libbase/Socket.h             |    4 +++-
 testsuite/XmlSocketServer.pl |    4 +---
 4 files changed, 8 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]