Commit a023bf9
committed
Add get_server_address() and simplify starting the ete server.
We changed start_server() so that it automatically tracks the created server in g_threads (unless we set track=False).
It also sets the compression (with the compress argument) to use when communicating. So we do not have to do it somewhere else. I think it makes sense here.
Finally, with the new get_server_address() which returns (host, port),
we can simplify quite a bit of code, and make it look independent of
the kind of server that we use (wsgiref.simple_server, cheroot,
whatever).1 parent 12addab commit a023bf9
File tree
3 files changed
+36
-31
lines changed- ete4
- core
- smartview
- examples/explorer
3 files changed
+36
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
| 1086 | + | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
| |||
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | | - | |
| 1103 | + | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | | - | |
| 1113 | + | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | 662 | | |
666 | 663 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
| 664 | + | |
| 665 | + | |
672 | 666 | | |
673 | | - | |
674 | | - | |
675 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
676 | 671 | | |
677 | 672 | | |
678 | | - | |
679 | | - | |
680 | 673 | | |
681 | 674 | | |
682 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
| |||
705 | 707 | | |
706 | 708 | | |
707 | 709 | | |
708 | | - | |
709 | | - | |
| 710 | + | |
| 711 | + | |
710 | 712 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | 713 | | |
715 | 714 | | |
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
719 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
720 | 725 | | |
721 | 726 | | |
722 | 727 | | |
| |||
725 | 730 | | |
726 | 731 | | |
727 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
728 | 736 | | |
729 | 737 | | |
730 | 738 | | |
| |||
810 | 818 | | |
811 | 819 | | |
812 | 820 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 821 | | |
817 | | - | |
818 | | - | |
819 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
820 | 825 | | |
821 | | - | |
| 826 | + | |
822 | 827 | | |
823 | 828 | | |
824 | 829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments