[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI Threadsafe



   In the RPG and iSeries World we use Spawn API and pre-start jobs to do
   multi-threading. Each connection would require another job, a pre-start
   job. Trick is communications. Do these different connections need to
   talk to each other or to someone else?

   On Thu, May 26, 2016 at 8:42 AM, Scott Klement <[1]sk@xxxxxxxxxxxxxxxx>
   wrote:

     John,
     No, HTTPAPI is not threadsafe, and has never been tested in a
     multi-threaded environment.
     I've never heard of someone writing a multi-threaded application in
     RPG.� Yes, I know that IBM made it possible to make multi-threaded
     RPG programs starting with 6.1, but aside from textbook examples
     that show that it is possible, I've never seen anyone write a
     multi-threaded application in RPG.
     -SK
     On 5/26/2016 9:35 AM, John Long wrote:

     � � Hi All,
     � � I'm trying to use HTTPAPI to create persistent connections in
     a multi
     � � threaded application,
     � � When I try to start a second thread and therefore a second
     connection
     � � I'm receiving error, is the API threadsafe?
     � � Regards
     � � � � John Long
     � �
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [2]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

References

   1. mailto:sk@xxxxxxxxxxxxxxxx
   2. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------