This also increases the server timeout to make it usuable if the client is
manually operated by a human (e.g. obex_test client mode).
---
 apps/obex_test/obex_test.c        |    1 +
 apps/obex_test/obex_test_server.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/apps/obex_test/obex_test.c b/apps/obex_test/obex_test.c
index 0373241..4200f9b 100644
--- a/apps/obex_test/obex_test.c
+++ b/apps/obex_test/obex_test.c
@@ -467,6 +467,7 @@ int main (int argc, char *argv[])
                                }
                                /* No process server events */
                                server_do(handle);
+                               OBEX_TransportDisconnect(handle);
                        break;
                        default:
                                printf("Unknown command %s\n", cmd);
diff --git a/apps/obex_test/obex_test_server.c 
b/apps/obex_test/obex_test_server.c
index fbfc978..38014da 100644
--- a/apps/obex_test/obex_test_server.c
+++ b/apps/obex_test/obex_test_server.c
@@ -238,7 +238,7 @@ void server_do(obex_t *handle)
 
        gt->serverdone = FALSE;
        while(!gt->serverdone) {
-               ret = OBEX_HandleInput(handle, 10);
+               ret = OBEX_HandleInput(handle, 60);
                if(ret < 0) {
                        printf("Error while doing OBEX_HandleInput()\n");
                        break;
-- 
1.7.5.3


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to