[go-nuts] multicast...

2017-06-08 Thread brylant
Hi, I'm trying to capture OSPF hello packets like this: ens192, err := net.InterfaceByName("ens192") if err != nil { return err } _ = ens192 c, err := net.ListenPacket("ip4:89", "0.0.0.0") // ipv4 proto 89, all local interfaces if e

[go-nuts] multicast...

2017-06-08 Thread brylant
Hi, I'm trying to capture OSPF hello packets like this: ens192, err := net.InterfaceByName("ens192") if err != nil { return err } c, err := net.ListenPacket("ip4:89", "0.0.0.0") // ipv4 proto 89, all local interfaces if err != nil {

[go-nuts] Completeness of Golang drivers for open-source and enterprise databases.

2017-06-08 Thread hari . elearner
Hi All, We are planning to develop a component in Golang, which should retrieve data from remote RDBMS. SAP Hana, Sybase, Oracle, Db2, Postgres, Sql3 are the target DBs. Following link lists the golang SQL drivers available for different DBs, *link1:* https://github.com/golang/go/wiki/SQLDriver

[go-nuts] golang thrift server 28k/s request client many dial tcp timeout ,why??

2017-06-08 Thread 刘桂祥
I have a very simple golang thrift server. the handle is very easy just to return But when I use another machine to benchmark the server ,when the qps to 28K/s , client have many dial tcp io/timeout I don't konw the reason ? is the client or server's problem? -- You recei

Re: [go-nuts] golang thrift server 28k/s request client many dial tcp timeout ,why??

2017-06-08 Thread Shawn Milochik
What error are you getting along with the timeout? I suspect that it has something to do with the limit of filehandles on the client. Have a look at this: https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ -- You received this message because you are subscribed to the

[go-nuts] Is it possible to redefine basic data types?

2017-06-08 Thread Alessandro Re
Dear all, I was wondering if it is useful to redefine basic data types, for example type int int32 or, as in my case that I am dealing with CGO type int C.int Besides being possible, and probably not really practical, is it safe? Are there any practical use cases where redefining some basic d

Re: [go-nuts] Is it possible to redefine basic data types?

2017-06-08 Thread Ian Lance Taylor
On Thu, Jun 8, 2017 at 9:15 AM, Alessandro Re wrote: > > I was wondering if it is useful to redefine basic data types, for example > > type int int32 > > or, as in my case that I am dealing with CGO > > type int C.int Yes, although it will only affect the package being compiled. > Besides being

[go-nuts] Re: multicast...

2017-06-08 Thread brylant
It appears nothing is wrong with my code... it's just red hat firewalld that is blocking ospf... On Thursday, 8 June 2017 13:37:27 UTC+1, brylant wrote: > > Hi, > > I'm trying to capture OSPF hello packets like this: > > ens192, err := net.InterfaceByName("ens192") > if err != nil

Re: [go-nuts] How to use Go for devops, infrastructure and sys administration

2017-06-08 Thread dimitri
Hello there, Do have it on git by any chance? On Saturday, September 28, 2013 at 7:55:34 AM UTC-7, John Waycott wrote: > > > > On Wednesday, September 25, 2013 8:14:40 AM UTC-7, Ian Lance Taylor wrote: >> >> I'm not sure what question you are asking, but I write build scripts >> and the like in

[go-nuts] Re: {CGO,VM}-free SQLite (ATM Linux/Intel only, pre-alpha)

2017-06-08 Thread Mandolyte
By the name and the reference to the SQLite3 website for documentation, I think is intended to be a pure (?) Go driver for the SQLite3 file format. But I also noticed some references to C runtime... so just wanted to make sure I understood the intent. thanks. On Monday, June 5, 2017 at 2:30:18

Re: [go-nuts] Re: {CGO,VM}-free SQLite (ATM Linux/Intel only, pre-alpha)

2017-06-08 Thread David Anderson
It looks like it takes the sqlite3 source code (specifically, https://www.sqlite.org/amalgamation.html), mechanically translates it from C to Go using https://github.com/cznic/ccgo , then adds a thin layer to adapt the database/sql interfaces to the C-in-Go codebase. - Dave On Thu, Jun 8, 2017 at

[go-nuts] Completeness of Golang drivers for open-source and enterprise databases.

2017-06-08 Thread Tamás Gulácsi
ora.v4: Query1 : Is the status mentioned in link2 is up-to-date ? Yes Query2 : Have anybody tried these drivers in production systems ? Yes Query3 : Does these drivers provide APIs to fetch the schema (column names, column/value types) of tables in DBs? Yes: SQL. Just "SELECT * FROM user_tab_col

Re: [go-nuts] golang thrift server 28k/s request client many dial tcp timeout ,why??

2017-06-08 Thread 刘桂祥
client: dial tcp 100.70.186.38:9783: i/o timeout when I modify the server /proc/sys/net/core/netdev_max_backlog16384 /proc/sys/net/core/somaxconn 16384 the client dial timeout decrease some percent 在 2017年6月9日星期五 UTC+8上午12:10:15,Shawn Milochik写道: > > What error are you getti