Dan Pascu wrote:

With TCP, if a new connection is needed, the TCP connection will be set
up by the worker thread. Thus, a new TCP connection can block all
workers (just as a TLS handshake or DNS lookup)

Making a new TCP connection can indeed block, but not all the workers, only the one making the connection. However you can establish a new connection in non blocking mode, but you need a select/poll event loop to notify you when the connection was actually established. I'm not sure how openser handles making new TCP connections (blocking or not), and depending how it does it it may indeed be a blocking point. Writing to existing TCP connections however shouldn't be an issue because it does not expect the reply right away.


Thus, someone should check if new conenctions are done blocking or non-blocking.


--
Klaus Darilion
nic.at


_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to