<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/cli, branch 1.11</title>
<subtitle>High performance PPTP/L2TP/SSTP/PPPoE/IPoE server for Linux (mirror of https://github.com/marekm72/accel-ppp.git)
</subtitle>
<id>https://git.amelek.net/marekm72/accel-ppp.git/atom?h=1.11</id>
<link rel='self' href='https://git.amelek.net/marekm72/accel-ppp.git/atom?h=1.11'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/'/>
<updated>2017-09-26T08:58:41+00:00</updated>
<entry>
<title>cli: introduced ip6 and ip6-dp fields in "show sessions" command</title>
<updated>2017-09-26T08:58:41+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-09-25T15:20:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=08e048a76d1d566bf280e3c09d4d839ff40f7af7'/>
<id>urn:sha1:08e048a76d1d566bf280e3c09d4d839ff40f7af7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>accel-ppp Debian x32 fix minor -Wformat warnings</title>
<updated>2016-05-31T09:38:21+00:00</updated>
<author>
<name>Marek Michalkiewicz</name>
<email>marekm@amelek.gda.pl</email>
</author>
<published>2016-05-28T21:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=74d9a93067733e61d27038b905bf0f8325a102b5'/>
<id>urn:sha1:74d9a93067733e61d27038b905bf0f8325a102b5</id>
<content type='text'>
Hello,

small patch to avoid gcc -Wformat warnings on Debian x32 where time_t
is "long long" (64-bit signed, to be 2038 safe), not "unsigned long"
(32-bit unsigned) corresponding to "%lu" format strings.

Regards,
Marek
</content>
</entry>
<entry>
<title>cli: flush pending data before disconnecting</title>
<updated>2016-04-28T08:17:16+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2016-04-27T19:02:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=20e1eff0c9afeab494a1c24265a4a2d28058d9dd'/>
<id>urn:sha1:20e1eff0c9afeab494a1c24265a4a2d28058d9dd</id>
<content type='text'>
The telnet and tcp servers disconnect as soon as they receive the
'exit' command or see a disconnection from the client. In this case,
all data queued for transmission are lost. This can lead to truncated
output when big amount of data is being sent.

For example, on a moderately loaded server with a few thouthands
connections, the output of the 'accel-cmd show sessions' command can be
truncated.
The problem is that accel-cmd sends the 'show sessions' command,
followed by 'exit'. It does so because it has to stop running once all
data has been received from the server. But it never knows whether more
data are going to arrive. Disconnection must then come from the server,
hence the use of 'exit' (although the same effect could be achieved
with shutdown(SHUT_WR)).

The telnet and tcp modules behave very similarly and are modified in
the same way:

  * For a soft disconnection, cln_read() doesn't call disconnect()
    anymore if there are data queued for transmission. Instead it
    sets the 'disconnect' flag and stops listening to its peer (no
    need to process further messages).

  * cln_write() checks the 'disconnect' flag once it has sent all
    pending data and actually performs the disconnection if necessary.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>cli: fix data output miss-ordering</title>
<updated>2016-04-28T08:16:47+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2016-04-27T19:02:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=72b21d0537b49f23254bdf63ad9a3d1a61b3bbbe'/>
<id>urn:sha1:72b21d0537b49f23254bdf63ad9a3d1a61b3bbbe</id>
<content type='text'>
In tcp and telnet backends, the first buffer been queued is directly
pointed to by cln-&gt;xmit_buf. It's not added to cln-&gt;xmit_queue.
Therefore testing if -&gt;xmit_queue is empty doesn't reliably tells
if data has already been queued.

We should test if -&gt;xmit_buf is non-NULL instead. This is reliable
because -&gt;xmit_buf is re-filled with the first buffer from -&gt;xmit_queue
after every successful write().

Failure to properly check if data has already been queued can lead to
message miss-ordering because cli_client_send() or telnet_send() will
try to directly write() their input buffer, effectively bypassing the
one previously queued up in -&gt;xmit_buf.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>cli: fix partial line duplication and truncation</title>
<updated>2016-04-28T08:16:05+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2016-04-27T19:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=16449c4f4972ffad500951db5c71403cae0422e7'/>
<id>urn:sha1:16449c4f4972ffad500951db5c71403cae0422e7</id>
<content type='text'>
When queueing output data for later write(), the 'n' first bytes of the
buffer have already been sent (we have n &gt; 0 if EAGAIN was returned
after some other write() calls succeeded). Therefore, we need to skip
these bytes when initialising the buffer to be queued.
The size passed to memcpy() did already take that space into account.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>improved restart and termination procedure</title>
<updated>2016-03-18T16:37:19+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2016-03-18T16:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=65c90307db554663964f1aa2624630433a98d040'/>
<id>urn:sha1:65c90307db554663964f1aa2624630433a98d040</id>
<content type='text'>
</content>
</entry>
<entry>
<title>make termination caused by SIGTERM soft</title>
<updated>2016-03-18T10:40:07+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2016-03-18T10:40:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=ecee62f204a93c7f512dce46657fbd101d155d78'/>
<id>urn:sha1:ecee62f204a93c7f512dce46657fbd101d155d78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cli: show sesisons: introduced rx-bytes-raw,tx-bytes-raw fields</title>
<updated>2015-11-30T11:06:07+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2015-11-30T11:06:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=504e7b995913956f71fe76c93e439df63701c0b3'/>
<id>urn:sha1:504e7b995913956f71fe76c93e439df63701c0b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cli: show sesisons: introduced rx-bytes,rx-pkts,tx-bytes,tx-pkts fields</title>
<updated>2015-11-30T10:14:24+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2015-11-30T10:14:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=c402a55c79f57add1bfc02ad594a2b0c0d63fbbd'/>
<id>urn:sha1:c402a55c79f57add1bfc02ad594a2b0c0d63fbbd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove trailing whitespaces</title>
<updated>2014-11-22T05:56:40+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2014-11-22T05:56:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=81ca3923a29ea9b67f7291be23b210019546aa5f'/>
<id>urn:sha1:81ca3923a29ea9b67f7291be23b210019546aa5f</id>
<content type='text'>
</content>
</entry>
</feed>
