diff options
author | Tom | 2011-09-04 07:06:36 -0700 |
---|---|---|
committer | Tom | 2011-09-04 07:06:36 -0700 |
commit | 66dec3b8742eff04fbbcc6e3249fe4ba87986500 (patch) | |
tree | 76cc708a821d35fac5cdbbce2de304b47064e732 /OpenSim/Services/Connectors/Hypergrid | |
parent | Guard another nullref (diff) | |
parent | Fixed BulletSim config files for Linux *.so libraries. (diff) | |
download | opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.zip opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.gz opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.bz2 opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.xz |
Resolve merge commits, stage 1
Diffstat (limited to 'OpenSim/Services/Connectors/Hypergrid')
-rw-r--r-- | OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs index 4ce406c..9c1f158 100644 --- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | |||
@@ -242,6 +242,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
242 | { | 242 | { |
243 | m_log.Debug("[USER AGENT CONNECTOR]: PackAgentCircuitData failed with exception: " + e.Message); | 243 | m_log.Debug("[USER AGENT CONNECTOR]: PackAgentCircuitData failed with exception: " + e.Message); |
244 | } | 244 | } |
245 | |||
245 | // Add the input arguments | 246 | // Add the input arguments |
246 | args["gatekeeper_serveruri"] = OSD.FromString(gatekeeper.ServerURI); | 247 | args["gatekeeper_serveruri"] = OSD.FromString(gatekeeper.ServerURI); |
247 | args["gatekeeper_host"] = OSD.FromString(gatekeeper.ExternalHostName); | 248 | args["gatekeeper_host"] = OSD.FromString(gatekeeper.ExternalHostName); |
@@ -427,7 +428,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
427 | paramList.Add(hash); | 428 | paramList.Add(hash); |
428 | 429 | ||
429 | XmlRpcRequest request = new XmlRpcRequest("status_notification", paramList); | 430 | XmlRpcRequest request = new XmlRpcRequest("status_notification", paramList); |
430 | string reason = string.Empty; | 431 | // string reason = string.Empty; |
431 | 432 | ||
432 | // Send and get reply | 433 | // Send and get reply |
433 | List<UUID> friendsOnline = new List<UUID>(); | 434 | List<UUID> friendsOnline = new List<UUID>(); |
@@ -436,17 +437,17 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
436 | { | 437 | { |
437 | response = request.Send(m_ServerURL, 6000); | 438 | response = request.Send(m_ServerURL, 6000); |
438 | } | 439 | } |
439 | catch (Exception e) | 440 | catch |
440 | { | 441 | { |
441 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); | 442 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); |
442 | reason = "Exception: " + e.Message; | 443 | // reason = "Exception: " + e.Message; |
443 | return friendsOnline; | 444 | return friendsOnline; |
444 | } | 445 | } |
445 | 446 | ||
446 | if (response.IsFault) | 447 | if (response.IsFault) |
447 | { | 448 | { |
448 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 449 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
449 | reason = "XMLRPC Fault"; | 450 | // reason = "XMLRPC Fault"; |
450 | return friendsOnline; | 451 | return friendsOnline; |
451 | } | 452 | } |
452 | 453 | ||
@@ -458,7 +459,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
458 | if (hash == null) | 459 | if (hash == null) |
459 | { | 460 | { |
460 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetOnlineFriends Got null response from {0}! THIS IS BAAAAD", m_ServerURL); | 461 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetOnlineFriends Got null response from {0}! THIS IS BAAAAD", m_ServerURL); |
461 | reason = "Internal error 1"; | 462 | // reason = "Internal error 1"; |
462 | return friendsOnline; | 463 | return friendsOnline; |
463 | } | 464 | } |
464 | 465 | ||
@@ -474,10 +475,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
474 | } | 475 | } |
475 | 476 | ||
476 | } | 477 | } |
477 | catch (Exception e) | 478 | catch |
478 | { | 479 | { |
479 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); | 480 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); |
480 | reason = "Exception: " + e.Message; | 481 | // reason = "Exception: " + e.Message; |
481 | } | 482 | } |
482 | 483 | ||
483 | return friendsOnline; | 484 | return friendsOnline; |
@@ -498,7 +499,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
498 | paramList.Add(hash); | 499 | paramList.Add(hash); |
499 | 500 | ||
500 | XmlRpcRequest request = new XmlRpcRequest("get_online_friends", paramList); | 501 | XmlRpcRequest request = new XmlRpcRequest("get_online_friends", paramList); |
501 | string reason = string.Empty; | 502 | // string reason = string.Empty; |
502 | 503 | ||
503 | // Send and get reply | 504 | // Send and get reply |
504 | List<UUID> online = new List<UUID>(); | 505 | List<UUID> online = new List<UUID>(); |
@@ -507,17 +508,17 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
507 | { | 508 | { |
508 | response = request.Send(m_ServerURL, 10000); | 509 | response = request.Send(m_ServerURL, 10000); |
509 | } | 510 | } |
510 | catch (Exception e) | 511 | catch |
511 | { | 512 | { |
512 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); | 513 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); |
513 | reason = "Exception: " + e.Message; | 514 | // reason = "Exception: " + e.Message; |
514 | return online; | 515 | return online; |
515 | } | 516 | } |
516 | 517 | ||
517 | if (response.IsFault) | 518 | if (response.IsFault) |
518 | { | 519 | { |
519 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 520 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
520 | reason = "XMLRPC Fault"; | 521 | // reason = "XMLRPC Fault"; |
521 | return online; | 522 | return online; |
522 | } | 523 | } |
523 | 524 | ||
@@ -529,7 +530,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
529 | if (hash == null) | 530 | if (hash == null) |
530 | { | 531 | { |
531 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetOnlineFriends Got null response from {0}! THIS IS BAAAAD", m_ServerURL); | 532 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetOnlineFriends Got null response from {0}! THIS IS BAAAAD", m_ServerURL); |
532 | reason = "Internal error 1"; | 533 | // reason = "Internal error 1"; |
533 | return online; | 534 | return online; |
534 | } | 535 | } |
535 | 536 | ||
@@ -545,10 +546,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
545 | } | 546 | } |
546 | 547 | ||
547 | } | 548 | } |
548 | catch (Exception e) | 549 | catch |
549 | { | 550 | { |
550 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); | 551 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); |
551 | reason = "Exception: " + e.Message; | 552 | // reason = "Exception: " + e.Message; |
552 | } | 553 | } |
553 | 554 | ||
554 | return online; | 555 | return online; |
@@ -563,7 +564,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
563 | paramList.Add(hash); | 564 | paramList.Add(hash); |
564 | 565 | ||
565 | XmlRpcRequest request = new XmlRpcRequest("get_server_urls", paramList); | 566 | XmlRpcRequest request = new XmlRpcRequest("get_server_urls", paramList); |
566 | string reason = string.Empty; | 567 | // string reason = string.Empty; |
567 | 568 | ||
568 | // Send and get reply | 569 | // Send and get reply |
569 | Dictionary<string, object> serverURLs = new Dictionary<string,object>(); | 570 | Dictionary<string, object> serverURLs = new Dictionary<string,object>(); |
@@ -572,17 +573,17 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
572 | { | 573 | { |
573 | response = request.Send(m_ServerURL, 10000); | 574 | response = request.Send(m_ServerURL, 10000); |
574 | } | 575 | } |
575 | catch (Exception e) | 576 | catch |
576 | { | 577 | { |
577 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); | 578 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); |
578 | reason = "Exception: " + e.Message; | 579 | // reason = "Exception: " + e.Message; |
579 | return serverURLs; | 580 | return serverURLs; |
580 | } | 581 | } |
581 | 582 | ||
582 | if (response.IsFault) | 583 | if (response.IsFault) |
583 | { | 584 | { |
584 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 585 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
585 | reason = "XMLRPC Fault"; | 586 | // reason = "XMLRPC Fault"; |
586 | return serverURLs; | 587 | return serverURLs; |
587 | } | 588 | } |
588 | 589 | ||
@@ -594,7 +595,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
594 | if (hash == null) | 595 | if (hash == null) |
595 | { | 596 | { |
596 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetServerURLs Got null response from {0}! THIS IS BAAAAD", m_ServerURL); | 597 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetServerURLs Got null response from {0}! THIS IS BAAAAD", m_ServerURL); |
597 | reason = "Internal error 1"; | 598 | // reason = "Internal error 1"; |
598 | return serverURLs; | 599 | return serverURLs; |
599 | } | 600 | } |
600 | 601 | ||
@@ -609,10 +610,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
609 | } | 610 | } |
610 | 611 | ||
611 | } | 612 | } |
612 | catch (Exception e) | 613 | catch |
613 | { | 614 | { |
614 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); | 615 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetOnlineFriends response."); |
615 | reason = "Exception: " + e.Message; | 616 | // reason = "Exception: " + e.Message; |
616 | } | 617 | } |
617 | 618 | ||
618 | return serverURLs; | 619 | return serverURLs; |
@@ -627,7 +628,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
627 | paramList.Add(hash); | 628 | paramList.Add(hash); |
628 | 629 | ||
629 | XmlRpcRequest request = new XmlRpcRequest("locate_user", paramList); | 630 | XmlRpcRequest request = new XmlRpcRequest("locate_user", paramList); |
630 | string reason = string.Empty; | 631 | // string reason = string.Empty; |
631 | 632 | ||
632 | // Send and get reply | 633 | // Send and get reply |
633 | string url = string.Empty; | 634 | string url = string.Empty; |
@@ -636,17 +637,17 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
636 | { | 637 | { |
637 | response = request.Send(m_ServerURL, 10000); | 638 | response = request.Send(m_ServerURL, 10000); |
638 | } | 639 | } |
639 | catch (Exception e) | 640 | catch |
640 | { | 641 | { |
641 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); | 642 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); |
642 | reason = "Exception: " + e.Message; | 643 | // reason = "Exception: " + e.Message; |
643 | return url; | 644 | return url; |
644 | } | 645 | } |
645 | 646 | ||
646 | if (response.IsFault) | 647 | if (response.IsFault) |
647 | { | 648 | { |
648 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 649 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
649 | reason = "XMLRPC Fault"; | 650 | // reason = "XMLRPC Fault"; |
650 | return url; | 651 | return url; |
651 | } | 652 | } |
652 | 653 | ||
@@ -658,7 +659,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
658 | if (hash == null) | 659 | if (hash == null) |
659 | { | 660 | { |
660 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: LocateUser Got null response from {0}! THIS IS BAAAAD", m_ServerURL); | 661 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: LocateUser Got null response from {0}! THIS IS BAAAAD", m_ServerURL); |
661 | reason = "Internal error 1"; | 662 | // reason = "Internal error 1"; |
662 | return url; | 663 | return url; |
663 | } | 664 | } |
664 | 665 | ||
@@ -667,10 +668,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
667 | url = hash["URL"].ToString(); | 668 | url = hash["URL"].ToString(); |
668 | 669 | ||
669 | } | 670 | } |
670 | catch (Exception e) | 671 | catch |
671 | { | 672 | { |
672 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on LocateUser response."); | 673 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on LocateUser response."); |
673 | reason = "Exception: " + e.Message; | 674 | // reason = "Exception: " + e.Message; |
674 | } | 675 | } |
675 | 676 | ||
676 | return url; | 677 | return url; |
@@ -686,7 +687,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
686 | paramList.Add(hash); | 687 | paramList.Add(hash); |
687 | 688 | ||
688 | XmlRpcRequest request = new XmlRpcRequest("get_uui", paramList); | 689 | XmlRpcRequest request = new XmlRpcRequest("get_uui", paramList); |
689 | string reason = string.Empty; | 690 | // string reason = string.Empty; |
690 | 691 | ||
691 | // Send and get reply | 692 | // Send and get reply |
692 | string uui = string.Empty; | 693 | string uui = string.Empty; |
@@ -695,17 +696,17 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
695 | { | 696 | { |
696 | response = request.Send(m_ServerURL, 10000); | 697 | response = request.Send(m_ServerURL, 10000); |
697 | } | 698 | } |
698 | catch (Exception e) | 699 | catch |
699 | { | 700 | { |
700 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); | 701 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0}", m_ServerURL); |
701 | reason = "Exception: " + e.Message; | 702 | // reason = "Exception: " + e.Message; |
702 | return uui; | 703 | return uui; |
703 | } | 704 | } |
704 | 705 | ||
705 | if (response.IsFault) | 706 | if (response.IsFault) |
706 | { | 707 | { |
707 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 708 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
708 | reason = "XMLRPC Fault"; | 709 | // reason = "XMLRPC Fault"; |
709 | return uui; | 710 | return uui; |
710 | } | 711 | } |
711 | 712 | ||
@@ -717,7 +718,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
717 | if (hash == null) | 718 | if (hash == null) |
718 | { | 719 | { |
719 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetUUI Got null response from {0}! THIS IS BAAAAD", m_ServerURL); | 720 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: GetUUI Got null response from {0}! THIS IS BAAAAD", m_ServerURL); |
720 | reason = "Internal error 1"; | 721 | // reason = "Internal error 1"; |
721 | return uui; | 722 | return uui; |
722 | } | 723 | } |
723 | 724 | ||
@@ -726,10 +727,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
726 | uui = hash["UUI"].ToString(); | 727 | uui = hash["UUI"].ToString(); |
727 | 728 | ||
728 | } | 729 | } |
729 | catch (Exception e) | 730 | catch |
730 | { | 731 | { |
731 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on LocateUser response."); | 732 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on LocateUser response."); |
732 | reason = "Exception: " + e.Message; | 733 | // reason = "Exception: " + e.Message; |
733 | } | 734 | } |
734 | 735 | ||
735 | return uui; | 736 | return uui; |