NOTICE: 13grpc/06master 141856db4 15vjpai: Merge branch 'master' of github.com:vjpai/grpc
dodulz joined the channel
NOTICE: [13grpc] 15yang-g closed pull request #1136: Moving all of the codegens into a temporary static library. (06master...06plugins-as-libs) 02http://git.io/jmgK
dodulz
hallo
dodulz has quit
kolmodin_ joined the channel
kolmodin_ has quit
JohanSJA has quit
dklempner
hello
|Pixel|
heya
dklempner
Yesterday I left the office happily thinking I'd fixed the tsan issues
today not so much
but I got back my backpack which I left on the subway, so I've got that going for me, which is nice
|Pixel|
:D
kolmodin_ joined the channel
dgryski joined the channel
Kanalia joined the channel
Kanalia
good mornigs
pkosel joined the channel
pkosel has quit
kolmodin_ has quit
KanaliaTu joined the channel
KanaliaTu has quit
kolmodin_ joined the channel
twodarek_ joined the channel
KanaliaTu joined the channel
KanaliaTu has quit
kolmodin_ has quit
Kanalia has quit
twodarek has quit
dato has quit
normanm has quit
kolmodin_ joined the channel
normanm joined the channel
dato joined the channel
Kanalia joined the channel
trying to wrap my head around async calls in grpc/c++
the whole idea behind CompletionQueue and CompletionQueueTag interface still eludes me
kolmodin_ has quit
kolmodin_ joined the channel
hi kolmodin_
kolmodin
hi Kanalia :)
I seem to have a pretty poor connection through my ISP at home. ( that's kolmodin_)
Kanalia
it happens even to the best of them
I got disconnected today by freenode too, even though I got a good connection
NOTICE: [grpc-java] ejona86 opened pull request #247: Fix synchronization in client auth (master...auth-sync) http://git.io/jslx
ejona: how to cleanly disconnect from grpc-java server ?
I always get a "java.io.IOException: An existing connection was forcibly closed by the remote host" throw when my client disconnects from the server
ejona
Hmm...
On Java side, ChannelImpl.shutdown() would do it.
I don't know about C side.
Kanalia
ok
ejona
Want to create an issue and include the full exception you get, so I can find out if it is a Java problem on the C could do a cleaner termination?
Kanalia
nah, not ATM, let's wait for |Pixel|
+ I have to register a github account, finally :P
solfried joined the channel
solfried
has nyone gotten grpc csharp to run on Visual Studio
Kanalia
solfried: I haven't tried
solfried
docs say that the csharp version is currently built on Mono, but I am trying to run on Windows
I have gotten a successfull compile and can run the server
it crashes when receiving messages
solfried has left the channel
Kanalia
that guy didn't have much patience it seems
cool, now I got working async client (at least I think so)
JohanSJA has quit
ejona
:( I would have told him that I think C# is still in the works. https://github.com/grpc/grpc/tree/master/src/cs... says it only works on Mono right now, and even then "This gRPC C# implementation is work-in-progress and is not expected to work yet."
Kanalia
yes, pre-alpha stage after all
NOTICE: [grpc-java] ejona86 opened pull request #248: Test whether inbound flow control functions (master...flow-control-test) https://github.com/grpc/grpc-java/pull/248
ejona
Ah, he's now sent an email to grpc-io, so I can still inform him.
Kanalia
yay
still, typical case of impatient web-irc user :P
ejona has left the channel
|Pixel|
Kanalia: what's up ?
Kanalia
|Pixel|: hi Nicolas
|Pixel|
heya
Kanalia
how to cleanly/properly disconnect from the server in grpc/grpc++ ?
|Pixel|
well, you shutdown everything
Kanalia
been trying to find some method of closing the channel/socket/connection before calling grpc_shutdown() but I wasn't successful
just that?
ok
|Pixel|
it's refcounted
so if you shutdown all of the completion queues
and shutdown grpc itself
Kanalia
yes I shutdown everything
|Pixel|
all of the refcounts should go to 0
and things should clear
Kanalia
still, in such a situation, grpc-java server throws an exception like this: "java.io.IOException: An existing connection was forcibly closed by the remote host"
|Pixel|
hmm
Kanalia
we were wondering with ejona if that's a problem on the java side or am I doing something wrong on the client side
it may be the first case then
|Pixel|
I don't recall the protocol having an actual shutdown handshake ?
Kanalia
maybe it doesn't, too bad ejona parted, will have to talk to him about this later
because I wonder how it works when java talks with java
|Pixel|
but that warning doesn't make me cringe, no
Kanalia
nah it's nothing really bad
|Pixel|
what do you mean ?
Kanalia
just inconvenient in the logs :P you don't know if really an IOException happened at one point or if it's just the client disconnecting
|Pixel|
oh right
Kanalia
I meant that I wonder if java client talking to java server, then disconnecting, produces the same IO exception
if not, then it's obviously an implementation fail, the server expects some notice but doesn't get it from a c/cpp client
yeah, it's just speculation now, ejona will know more about this on that side
still I managed to get the hang of async connection on grpc with the QPS tests
|Pixel|
I haven't spelunked the code enough yet
but I don't recall a goodbye message
or any mechanism towards that for that matter
Kanalia
I didn't understand the whole notions with tags and the complettion queue methods, but after a few try&error sessions it all made sense
ok, good to know
ah, one more question, how to disable all this verbose debugging output that's thrown at std::err by grpc ?
|Pixel|
you can override the logger... :)
Kanalia
ah so those are gpr_log calls?
|Pixel|
it's a bit, well
non intuitive
yes
Kanalia
ok, that's enough for me to handle it
|Pixel|
void gpr_set_log_function(gpr_log_func func);
Kanalia
yay, thanks
what's the diff between completionqueue Next(...) and AsyncNext(...) methods?
that AsyncNext works on a deadline and is non-blocking, while next is blocking?
|Pixel|
that should be it, yes
Kanalia
ok
oh and finally recompiled with your latest windows fixes, gprc doesn't crash now on finish