Re: [patch] Accommodating Giganews users (20-50 connections)

Heinrich Mueller <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
Am 03.09.2011 09:03, schrieb Conrad J. Sabatier:
> I'd like to submit the following simple patch for inclusion in the
> master repo, to accommodate users fortunate enough to have a Giganews
> "Diamond" account, to allow them to use their full 50(!) connections.
>
> Or perhaps a new switch could be added to the configure script which,
> in turn, would then apply the appropriate patch (50 connections for
> Diamond, 20 connections for Platinum/Silver/Bronze/Pearl)?
>
> Anyway, just to present the general idea (this is a *very* simple
> patch), and it works just fine and dandy.  No muss, no fuss!
> (appy-polly-loggies for the line wrap)  :-) :
>
> --- pan/gui/server-ui.cc.orig	2011-09-03 01:39:16.000000000 -0500
> +++ pan/gui/server-ui.cc	2011-09-03 01:39:45.000000000 -0500
> @@ -91,7 +91,7 @@
>
>       d->server = server;
>
> -    int port(119), max_conn(4), age(31*3), rank(1);
> +    int port(119), max_conn(50), age(31*3), rank(1);
>       std::string addr, user, pass;
>       if (!server.empty()) {
>         d->data.get_server_addr (server, addr, port);
> @@ -249,7 +249,7 @@
>     HIG::workarea_add_section_title (t,&row, _("Settings"));
>       HIG::workarea_add_section_spacer (t, row, 2);
>
> -    const int DEFAULT_MAX_PER_SERVER (4);
> +    const int DEFAULT_MAX_PER_SERVER (50);
>       a = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0,
> DEFAULT_MAX_PER_SERVER, 1.0, 1.0, 0.0)); d->connection_limit_spin = w =
> gtk_spin_button_new (GTK_ADJUSTMENT(a), 1.0, 0u); HIG::workarea_add_row
> (t,&row, _("Connection _Limit:"), w, NULL);
>
There was a _lengthy_ discussion about this. Just let it be ;)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.