Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added nodelay option
Jack Lange [Sat, 13 Jun 2009 00:17:15 +0000 (19:17 -0500)]
misc/network_servers/v3_nbd/v3_nbd.cc

index c0b3923..c74c4c1 100644 (file)
@@ -416,6 +416,8 @@ int handle_read_request(SOCK conn, v3_disk * disk) {
 
     vtl_debug("Read Request\n");
 
+
+
     if (Receive(conn, (char *)&offset, 8, true) <= 0) {
        vtl_debug("Error receiving read offset\n");
        return -1;
@@ -459,10 +461,15 @@ int handle_read_request(SOCK conn, v3_disk * disk) {
 
     if (ret_len > 0) {
        vtl_debug("Sending Data\n");
+
+       SetNoDelaySocket(conn, false);
+
        if (Send(conn, (char *)buf, ret_len, true)  <= 0) {
            vtl_debug("Error sending Read Data\n");
            return -1;
        }
+
+       SetNoDelaySocket(conn, true);
     }
 
     vtl_debug("Read Complete\n");
@@ -528,6 +535,7 @@ int handle_new_connection(SOCK new_conn) {
 
     disk->attach();
 
+
     vtl_debug("Connected to disk %s\n", tag_str.c_str());
 
     return 0;