[Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net

2017-06-02 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1112=L21haW4-

Comment #2 by Olivier CRUILLES:

Hello,
Regarding the documentation of libcurl on what gb.net is based, the buffer size 
can be configured from default value 16kB to 512kB.

I'm developing a process in Gambas to receive more than 10 Flows/sec (maxi 
1464 Bytes per Flow) and split those and retransmit those to 3 others processes 
over Local Socket. There is to many flows to transmit per second over the Local 
Socket that the buffer size by default is not enough I guess. This is the only 
reason that I have found. 
Maybe my usage of Socket is not correct.

Official Documentation of libCurl:

SYNOPSIS

#include 

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_BUFFERSIZE, long size);
DESCRIPTION

Pass a long specifying your preferred size (in bytes) for the receive buffer in 
libcurl. The main point of this would be that the write callback gets called 
more often and with smaller chunks. Secondly, for some protocols, there's a 
benefit of having a larger buffer for performance.

This is just treated as a request, not an order. You cannot be guaranteed to 
actually get the given size.

This buffer size is by default CURL_MAX_WRITE_SIZE (16kB). The maximum buffer 
size allowed to be set is CURL_MAX_READ_SIZE (512kB). The minimum buffer size 
allowed to be set is 1024.
DEFAULT

CURL_MAX_WRITE_SIZE (16kB)



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Using a relative file path for a WebView URL

2017-06-02 Thread adamn...@gmail.com
I am trying to get a WebViewer control in a loaded library to display an html 
file stored inside the executable archive of a project using that library.
This appears to be not possible ... in the following the main project is 
calling the library form Run method with a relative path say 
"../help/html/index.html" (Note the use of the ../ to get the calling programs 
executable relative path!). The library code is as follows:

Public Sub Run (path As string)
If Exist(path &/ "index.html") Then 
Debug path &/ "index.html exists"
wvwPage.URL = path &/ "index.html"
Debug wvwPage.URL

FHSView.Run.10: ../help/html/index.html exists
FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html

>From the above debug output it appears that the WebView control is 
>"subverting" the actual path back into an absolute path.
Any comments?

I think I can extract the entire help directory out of the calling program's 
executable into the /tmp dir, but I think that then I will have to edit every 
link in the pages to a path relative to the /tmp dir. Painful!

Has anyone got any better ideas?

bruce
-- 
B Bruen 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net

2017-06-02 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1112=L21haW4-

Comment #1 by Alexander KUIPER:

What are you trying to achieve here? Normally you can buffer read data in a 
string value until you reach the LOF or a sort-of end of record marker.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user