[stunnel-users] Incompatibility - Content-length parsing

Michal Trojnara Michal.Trojnara at mirt.net
Mon May 25 23:08:02 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Marcin,

On 25.05.2015 14:43, Marcin Gryszkalis wrote:
>> This should fix it: diff --git a/src/protocol.c b/src/protocol.c
> 
> fix confirmed

This is good news.  Thank you for testing it.

> 5.18b2 won't build on freebsd because of different scheduler flags
> 
> cron.c:82:46: error: use of undeclared identifier 'SCHED_BATCH' 
> if(pthread_setschedparam(pthread_self(), SCHED_BATCH, &param))

Indeed.  SCHED_BATCH seems to be only supported on modern versions of
Linux, which is not very portable.

On AIX it is possible to set per-thread nice value with
thread_setschedparam():
https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.basetrf1/pthread_setschedparam.htm

On Linux the same goal can be achieved with setpriority(2):
http://manpages.ubuntu.com/manpages/trusty/man2/setpriority.2.html
(BUGS section).

I couldn't find a solution for FreeBSD...

Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJVY48yAAoJEC78f/DUFuAUBMgQAMu84RyaujeeAv4eBmL7lmwt
Bpk6Em+h6e0jmRxMB3eRCz7s+RcF8hvDsm8kKhqVdNFblVYca8uCnVRJgiaZSK2o
iGWKYxU0RajcLxCX5B6bRNFD0yjTyyy8WdkAEi2JQt70rhc0uLlUhm25L79f+a1U
cSpKE8q+sLK1IlJksdxLoTC2A+vvmIkMang3z4zufKKBDBqx3yYKocY6ikNzUS74
3bzPlUJsxacFiJALX4HQvezEX5ngbjvaa5VwxG45fLcj3WlANNsdcrZ2hThOdaaG
J5X9V4bBe6GbjnCWL4om5/3KUM14MeOaeaVIY6cGc1QHraCHDAxTSJuHMKaIW20j
k+p+d2MX5DEesvFv+FO8/QXqvd1LFSs8i00/cy9EOv5ti8+0zcEGAd8GGt5lnQZ1
AsBtQEh1iOEUIByaAwsy6XjhuAB1vtoc8pSLV42dU1S8RBk7u96dUwpUBn6qbYA7
o/7MaCZlC/XITqT9KKB7+TSrQ4qbBbNRMdiB9jVWtDGvmrLrLwjcYK9Rdn0jilFX
5G0sfKRfw2ZLBc9E3T7ynW3aC71Tgt3NTD3q5lKG8X0KvKJkTU4odZPUi4uDORQF
l4UA+ApepsDp04TV4xyfmWwRk+MyX+N+gkSBS9oRG4m1REWkL5kch5Wne/0ZhCNI
xHht2YWdTAKXvehhVNmc
=/hSJ
-----END PGP SIGNATURE-----


More information about the stunnel-users mailing list